react native navigationOptions中不能獲取this、state

場景:在createStackNavigator路由過來的頁面,navigationOptions的header中添加搜索框,如下圖 static navigationOptions = { headerStyle: {backgroundColor: '#0086f1'}, headerTitle: ( <TextInput placeho
相關文章
相關標籤/搜索