在React-Native Android中样式顶部按钮

时间:2018-08-02 10:13:56

标签: react-native react-native-android react-native-navigation wix-react-native-navigation

我正在使用react-native-navigation,并且无法为Android设置右键按钮(应用字体和颜色等)的样式(并看到黑色的大写文本)。但是,这些样式适用于ios。 有人可以提出一些解决方案吗?

static navigatorStyle = {
    navBarHidden: false,
   navBarRightButtonFontSize: 15,
   navBarRightButtonFontFamily: 'OpenSans',
   topBarElevationShadowEnabled: false,
   topBarShadowColor: '#fff',
   topBarShadowOpacity: 0,
   navBarNoBorder: true,
   navBarBackgroundColor: '#fff',
   screenBackgroundColor: '#fff',
   navBarButtonColor: '#333',
   tabBarHidden: true,
    orientation: 'portrait,
    tabBarHidden: false,
    navBarRightButtonColor: '#F47F28',
}

static navigatorButtons = {
        leftButtons: [{
            icon: images.close,
            buttonColor: '#333333',
            disableIconTint: true,
            id: 'back'
        }],
        rightButtons: [{
            title: 'Sign out',
            buttonColor: '#F47F28',
            disableIconTint: true,
            id: 'signout'
        }]
    }

0 个答案:

没有答案