【发布时间】:2019-03-24 16:52:40
【问题描述】:
我是 react-native 的新手,我正在玩 react-navigation。我在导航选项卡中定位后退箭头时遇到问题。我想定位后向箭头以定位它。
这是我到目前为止所做的事情
static navigationOptions = ({navigation}) => {
return {
headerTitle: navigation.state.params.navTitle,
headerStyle: {
height: '45%',
backgroundColor: '#ffae19'
},
headerTintColor: 'white',
// this what I tried to implement
headerTitleStyle: { position: 'absolute', top: 10 }
}
}
您知道我只需要将后向箭头定位在顶部,因为在我当前的选项卡中,箭头位于导航选项卡的中心(垂直),看起来很难看。有什么帮助吗?
【问题讨论】:
标签: javascript reactjs react-native ecmascript-6 react-navigation