My React Native code:
import React, { Component } from \'react\';
import { AppRegistry, ActivityIndicator, StyleSheet, ListView,
Text, Button, TouchableH
In your first page, say CountriesList
const CountriesList = ({ navigation }) => {
/* Function to navigate to 2nd screen */
const viewCountry = (country) => {
navigation.navigate('ListItemPageRoute', { name: country.country_name });
};
}
For your second page name, say ListItemPageRoute
const ListItemPageRoute = (props) => {
return (
{ props.route.params.name }
);
};
'Props.route' Object will have the list of all parameters you would like to pass from one screen to another.