Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native use route params

navigation.navigate('RouteName', { /* params go here */ })

to recieve the params

function DetailsScreen({ route, navigation }) {
  const { itemId, otherParam } = route.params;
  return(<Text>itemId<Text>);
}
Source by reactnavigation.org #
 
PREVIOUS NEXT
Tagged: #react #native #route #params
ADD COMMENT
Topic
Name
3+3 =