Pass props from child to parent react navigation
I am using react-navigation . I am passing props from a react-native component to the modal from react-navigation which is opened on a tap. export default class SomeComp extends Component { ... render() { const { navigate } = this.props; return ( <TouchableOpacity onPress={navigate("Modal", {data: ..., ...})} ..../> ) } } Inside the modal I access the goBack() function which closes the modal , as well as the props passed through SomeComp export default class Modal extends Component { ... render() { const { data, ... } = this.props.navigation.state.params; const { goBack } = this.props