I'm trying to pass props to a component that has been wrapped through a call to create...Navigator
call, i.e.
// Search.js
const Navigator = createMaterialTopTabNavigator({
Wines,
Stores,
Vineyards,
Restaurants
});
// Somewhere in render()...
<Navigator />
I'm trying to figure out how to pass parameters to the Wines
/ Stores
/ etc. components from the Search
component (above). I've read the docs and apparently this can be done easily with navigation.navigate
by passing in an object, but I'm not sure how to do it with this particular method. Can someone please help?