-1
- Install the React-navigation: React-navigation
- Configure the routes with the stackNavigator
Call the route in the item onPress
<TouchableOppacity onPress={() => this.props.navigation.push('Details', { itemId: Math.floor(Math.random() * 100), })} >
On the screen where you are receiving the route, take these parameters:
const itemId = this.navigation.getParam('itemId')
Hi, have you tried React-navigation?
– Thiago Tibau