This is basic demo of react native using GraphQLHub Reddit for data.
$ git clone https://github.com/NikhilVashistha/ReactNativeTest.git
$ cd ReactNativeTest
$ npm install
ios
$ react-native run-ios
android
$ react-native run-android
App - It is top level component contains AppNavigator.
AppNavigator - It is a component used for navigation in app. It contains all the screens to navigate. By default it will show ListScreen. It is included in App.js.For app navigation pupose i am using react-navigation.
List - It is a component used for showing the list of SubReddit movies title.
ListItem - It is a stateless component used for showing the SubReddit each movie title in List component.
ListDetail - It is a component used for showing the details of particular SubReddit movie which includes title, comments and author name .
CommentItem - It is a stateless component used for showing the comment on each movie.