react-native-template-master-detail
v0.0.3
Published
![](https://github.com/hramos/react-native-template-master-detail/raw/master/.github/MasterScreen.ios.png?raw=true) ![](https://github.com/hramos/react-native-template-master-detail/raw/master/.github/MasterScreen.android.png?raw=true)
Downloads
8
Readme
Master-Detail Template for React Native apps
This is a basic template that provides a minimal master-detail app, similar to Xcode's Master Detail template and Android Studio's Master Detail Layout template. It uses react-navigation
and the 0.43 Release Candidate.
MainNavigator.js
- Top-level element rendered byindex.ios.js
andindex.android.js
. Configuresreact-navigation
and its routes.MasterScreen.js
- Displays a list of items usingFlatList
.DetailScreen.js
- Displays additional information on an item selected from theMasterScreen
.
Usage
You can use the template by running:
react-native init MyApp --version 0.43.0-rc.4 --template master-detail
Note that this is by convention. The package name is react-native-template-master-detail
, and the template can be used by passing master-detail
to the --template
flag when running react-native init
.