This is a react native starter app that I use to get me started with my projects. It's setup with react-native-navigation and some example screens.
-
Make sure your react native environment is setup for native development as explained here.
-
To run on iOS:
cd ios && pod install yarn ios
-
To run on Android:
yarn android
- react-native (0.63.2)
- react-native-navigation
- rnn-hooks
- eslint-config-rn-ts
- babel-plugin-transform-remove-console
Some helpful navigation hooks are provided by rnn-hooks to simplify working with navigation.
useNav
useNavigationButtonPressed
const nav = useNav();
const handlePush = () => {
nav.push(RandomScreen, { color: 'red' });
};
See the HomePage component to see how it is used.