A small demo that illustrates a navigation-based app that uses the React "Context" API to share state between two sibling components, a switch and a navigation bar button.
At the time of this writing, the project was based off of the React Native navigation tutorial:
https://reactnavigation.org/docs/getting-started
The initial setup for dependencies is discussed in the tutorial, but this project's dependencies can be added by running:
$ npm install
Then, install the pods via CocoaPods:
$ npx pod-install ios
Build the project by running:
$ npx react-native run-ios
The project was written with help from this entry on Stack Overflow.
Additional guidance was gleaned from the article "Application State Management with React."