/react-native-typescript-app

react native starter app with typescript and navigation

Primary LanguageTypeScript

gif

React Native Typescript App

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.

Development

  • 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
    

Included Packages:

Usage

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.