Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/180.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何更改本机抽屉导航中的文本颜色和高亮显示的颜色_Android_Reactjs_React Native - Fatal编程技术网

Android 如何更改本机抽屉导航中的文本颜色和高亮显示的颜色

Android 如何更改本机抽屉导航中的文本颜色和高亮显示的颜色,android,reactjs,react-native,Android,Reactjs,React Native,我可以更改背景颜色,但无法更改文本和高亮显示的颜色。我该怎么做?我已经附上了我的代码和截图 试试这种方法 <Drawer.Navigator drawerContentOptions={{ activeTintColor: 'red', activeBackgroundColor: 'grey', inactiveTintColor: 'blue', inactiveBackgroundC

我可以更改背景颜色,但无法更改文本和高亮显示的颜色。我该怎么做?我已经附上了我的代码和截图


试试这种方法

<Drawer.Navigator
        drawerContentOptions={{
          activeTintColor: 'red',
          activeBackgroundColor: 'grey',
          inactiveTintColor: 'blue',
          inactiveBackgroundColor: 'white',
          labelStyle:{
            fontSize: 15,
            marginLeft:5
          }
        }}>
</Drawer.Navigator>

检查此答案非常感谢。