标签: reactjs react-native react-proptypes
有什么办法得到如下所示的东西吗?
App.js
const App = () => { ... const [state, setState] = useState('test'); ... } App.navigationOptions = screenProps => ({ headerRight: <Text>{i want the state value in here}</Text>, });
有人可以提出任何建议吗?