This repository is based on React Native basic component. How to navigate between screen, how to send data from one screen to another screen and API integration are covered in this repository. This is very useful for beginner.
- Sidebar menu, Tab Navigator, Networking (API Integration), Stack Navigator,
- Image Loading ProgressBar
- Basic component like View, Text, TextInput, Button, FlatList, ProgressDialog.
Create project :
-
Give your destination "cd /path"
-
$react-native init ProjectName or Getting Started from this link : https://facebook.github.io/react-native/docs/getting-started.html
1)React Navigation for StackNavigator and TabNavigator
$npm install --save react-navigation
in .js file import {StackNavigator,TabNavigator} from 'react-navigation';2)SideBar Navigator Menu
$npm i --save react-native-side-menu
in .js file import SideMenu from 'react-native-side-menu';3)ProgressDialog
$npm i -S react-native-simple-dialogs
in .js file import { ProgressDialog } from 'react-native-simple-dialogs';4)Image Loading Progressbar
$npm install react-native-image-progressbar --save
in .js file import Image from 'react-native-image-progress';5)Elevated View - for Shadow to view
$npm install react-native-elevated-view --save
in .js file import ElevatedView from 'react-native-elevated-view';6)DateTime Format
$npm install moment --save
in .js file import Moment from 'moment';
I have run on Android Device. So this instruction is for android
- Provide android sdk path in android folder.
Create local.properties file and add this sdk.dir=/path of sdk
To run app use ‘$react-native run-android’ for android device
To print log
globally installation - npm install -g eslint
local installation - sudo apt install eslint
after this run below command
- for ios : $ react-native log-ios
- for android : $ react-native log-android