cljs-react-navigation
cljs-react-navigation copied to clipboard
Passing screen's props to navigationOptions
In the following example of react navigation intro https://reactnavigation.org/docs/intro/, you can pass down the screen's props to navigationOptions.
// Nav options can be defined as a function of the screen's props:
static navigationOptions = ({ navigation }) => ({
title: `Chat with ${navigation.state.params.user}`,
});
Is it supported yet in this CLJS wrappers for react-navigation? If yes, how do we do the same?
@foopang the URL you're referring to is 404-ing.
But does this answer your question:
https://github.com/seantempesta/cljs-react-navigation/blob/master/src/cljs_react_navigation/base.cljs#L164 ?