Navigation options for React Native

    0

    0

    Khalid Khan

    React Native companion for Typescript

    The code creates a NavigationInjectedProps object, which is then used to create an instance of NavigationOptions. The NavigationOptions instance has a title property set to "Title Screen.

    Library: react-native

    Shortcut: reactnative.nav

    public static navigationOptions = ({ navigation }: NavigationInjectedProps) => ({
      title: 'Title',
    });
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.