How to use the @react-navigation/compat.createCompatNavigatorFactory function in @react-navigation/compat

To help you get started, we’ve selected a few @react-navigation/compat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-navigation / navigation-ex / example / src / Screens / CompatAPI.tsx View on Github external
Push article
        
        <button mode="outlined"> navigation.goBack()}
          style={styles.button}
        &gt;
          Go back
        </button>
      
      
    
  );
};

const CompatStack = createCompatNavigatorFactory(createStackNavigator)&lt;
  StackNavigationProp
&gt;(
  {
    Article: {
      screen: ArticleScreen,
      params: {
        author: 'Gandalf',
      },
    },
    Album: AlbumsScreen,
  },
  {
    mode: 'modal',
  }
);

@react-navigation/compat

Compatibility layer to write navigator definitions in static configuration format

MIT
Latest version published 3 years ago

Package Health Score

78 / 100
Full package analysis

Popular @react-navigation/compat functions

Similar packages