creativetimofficial/now-ui-react-native

Navigate to a different page on Pro.js page

Closed this issue · 1 comments

Hi, I need to navigate to register page on Pro.js page the first page, but I am not sure how to do this

in App.js we have flowing NavigationContainer but how to add the register page to it as well?

    <NavigationContainer>
    <GalioProvider theme={nowTheme}>
      <Block flex>
        <Screens />
      </Block>
    </GalioProvider>
    </NavigationContainer>

Then in pro.js page block centre

        <Block center>
          <Button
          textStyle={{ fontFamily: 'montserrat-regular', fontSize: 12 }}
          style={styles.button}
          onPress={() => navigation.navigate("Register")}
        >

When I do above I get below error:


The action 'NAVIGATE' with payload {"name":"Register"} was not handled by any navigator.

Do you have a screen named 'Register'?

If you're trying to navigate to a screen in a nested navigator, see https://reactnavigation.org/docs/nesting-navigators#navigating-to-a-screen-in-a-nested-navigator.

This is a development-only warning and won't be shown in production.

I am not sure what to change in above to move to register page rather than home page.

Can someone help me regarding above issue?