This is a sample React Native project, bootstrapped using @react-native-community/cli
.
The goal of this app is to show how to optimize context usage using "ContextRef" as described in this medium article
This is a fork of react native AwesomeProject. You should use basic commands to build and start project:
yarn
yarn android
yarn ios
There are 3 different samples in the repository. To change used sample, update index.js and change import main file in:
import App from './AppContextRef';
- AppBasic.tsx: dummy implementation
- AppContext.tsx: add context
- AppContextRef.tsx: add contextRef