I'm trying to send a component to a new route via params, but the way I'm doing it does not work. Does anyone know to tell me my error?
Component A
this.props.navigation.navigate('ModalInput', {
input: {
component: <Input />,
}
});
Component ModalInput
...
render() {
const params = this.props.navigation.state.params;
return (
<View>
params.input.component.children()
...