How to pass a parameter in a response natural navigator?
1 answer
Regular props in the navigator component can be used to customize the navigator.
To send arbitrary props to screens, you must use screenProps
.
For example:
<StudentStackNav screenProps={{ name: 'Lucy' }}/>
Which will be available StudentLogin
as this.props.screenProps
.
screenProps
documented on this page
+8
source to share