react native navigationOptions中不能获取this、state

场景:在createStackNavigator路由过来的页面,navigationOptions的header中添加搜索框,如下图 static navigationOptions = { headerStyle: {backgroundColor: '#0086f1'}, headerTitle: ( <TextInput placeho
相关文章
相关标签/搜索