Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6211

How to navigate to another page in ignite bowser react native?

$
0
0

I am new to react native / ignite bowser. I am making a react native / ignite bowser project. First there is a welcome screen which appears when the app starts. There is a 'continue' button in the welcome screen. When I click the 'continue' button it should go to the login screen. But it shows this error:

TypeError: undefined is not an object (evaluating 'navigation.navigate')

I am running the app on an actual physical android device.

Can anyone help me? This is my code in github:

https://github.com/boidurja/smartcope_new.git

This is the part of the code where the error occurs:

<Button title="Countinue" containerStyle={{ flex: 1 }} onPress={ ( ) => navigation.navigate('login') }/>

in this file:

app/screens/auth-screens/welcome-screen.tsx

Viewing all articles
Browse latest Browse all 6211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>