An open API service indexing awesome lists of open source software.

https://github.com/aaronksaunders/hello-world-v3-stacknavigator-context-api

Focus is on react-navigation StackNavigator handling click event to move to the next page when the user selects a item from a FlatList Component. We show the FlatList Component, the use of the StackNavigator but instead of passing parameters between pages, we use the Context API to update the state to show the current item on the detail page
https://github.com/aaronksaunders/hello-world-v3-stacknavigator-context-api

context-api expo flatlist javascript react react-native react-navigation reactjs stacknavigator

Last synced: 4 months ago
JSON representation

Focus is on react-navigation StackNavigator handling click event to move to the next page when the user selects a item from a FlatList Component. We show the FlatList Component, the use of the StackNavigator but instead of passing parameters between pages, we use the Context API to update the state to show the current item on the detail page

Awesome Lists containing this project

README

          

# React Native App w/StackNavigator & Context API

>Focus is on [react-navigation StackNavigator](https://reactnavigation.org/docs/en/hello-react-navigation.html#creating-a-stack-navigator) handling click event to move to the next page when the user selects a item from a
FlatList Component. We show the [FlatList Component](https://facebook.github.io/react-native/docs/flatlist), the use of the StackNavigator but instead of passing parameters between pages,
we use the [Context API](https://reactjs.org/docs/context.html) to update the state to show the current item on the detail page

---
> See the same application implemented with React Redux - [hello-world-v3-stacknavigator-redux](https://github.com/aaronksaunders/hello-world-v3-stacknavigator-redux)
---

![](https://raw.githubusercontent.com/aaronksaunders/hello-world-v3-stacknavigator-context-api/master/readme.images/Screen%20Shot%202018-10-16%20at%2011.30.48%20AM.png)

### See Video for the first building out sample without Context API - React Native - React Navigation StackNavigator Expo.io Snack - PART 2 https://youtu.be/qe-yU7E9Snc via @YouTube

### More Information on React
- [React Native FlatList](https://facebook.github.io/react-native/docs/flatlist)
- [React Context API](https://reactjs.org/docs/context.html)
- [React Navigation](https://reactnavigation.org/)