-
Notifications
You must be signed in to change notification settings - Fork 24.8k

Description
'react-native init' should have an option where it creates a small app for you, using best practices. Right now 'react-native init' creates an "app" for you which is useless. I have to go and read lots of documentation and tutorials to figure out how to do completely basic things like navigation and state management. We have a great opportunity to make 'init' create something useful.
The new template would be a small app that includes Navigation, one screen with a ListView that renders JSON data fetched from a HTTP endpoint, and Redux for state management. It should also include tests.
We should include a basic local node server that serves the data and stores updates in memory, so that you can do 'init', run and see the whole thing working end-to-end.
For this, previous experience with building RN apps is essential.
You can implement this in steps, by first implementing a subset:
react-native init --navigation
creates an app with aListView
with static hardcoded items, tapping an item takes you to a screen representing that itemreact-native init --redux
creates an similar to the above, plus uses Redux for data management, and also allows editing the data via the detail screen. For this there should be a small local node server included that the user can start with a simple command.
See the discussion: https://www.facebook.com/groups/reactnativeoss/permalink/1558844321078863
This might be a good writeup to look at: https://medium.com/@dabit3/first-look-react-native-navigator-experimental-9a7cf39a615b#.656joiyks
Metadata
Metadata
Assignees
Labels
