如何在标题中设置按钮

时间:2019-03-19 17:36:13

标签: reactjs react-native react-native-navigation

我想在标头中设置后退按钮,以响应本机尝试了很多次,但没有人帮助我

static Options = () => {
 return {
  topBar: 
 createHeader(I18n.t('settings.personal'  ), {
    component: <FontAwesome name={'arrow-left'} size={20} color={Constants.blueAccent}/>,

    onPress:  () => Navigation.popTo('SettingsStack.InitialRoute')
  })
} 

}

0 个答案:

没有答案