/hellonavigate

Demo React Native project using navigation and state management via the Context API.

Primary LanguageJavaOtherNOASSERTION

README

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.

App screen shot

Installing dependencies

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

Acknowledgments

The project was written with help from this entry on Stack Overflow.

Additional guidance was gleaned from the article "Application State Management with React."

Touched: 2021-07-12