0
I’m trying to send a Component to a new route via params, but the way I’m doing it doesn’t work. Can anyone point out my mistake?
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()
...
What is the error you are indicating?
– sant0will
using Children() as a function, it indicates that the function does not exist, if I try as attribute does not return anything
– Henrique Weiand