cljs-react-navigation icon indicating copy to clipboard operation
cljs-react-navigation copied to clipboard

Passing screen's props to navigationOptions

Open foopang opened this issue 8 years ago • 1 comments

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 avatar Sep 17 '17 03:09 foopang

@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 ?

dotemacs avatar Apr 17 '18 13:04 dotemacs