I'm creating a small Android mobile app using React Native and react-native-router-flux.
I've customized everything except the leftTitle
and rightTitle
property of my main screen. I can name them, but I can't style them. They remain this blue color as seen in the image below.
Here is the code for that scene:
<Scene
rightTitle="Add"
onRight = { () => Actions.employeeCreate() }
key="employeeList"
component={EmployeeList}
title="Employees"
leftTitle="Log Out"
onLeft={ () => logUserOut() }
initial
/>
Does anyone know how to change the color of the title text?
Thanks!
react-native-router-flux
folder in node modules
react-native-router-flux > src > NavBar.js
barRightButtonText
and barLeftButtonText
in StyleSheet like thisFor right button text :
barRightButtonText: {
color: 'rgb(0, 122, 255)', //Your rgb color code here
textAlign: 'right',
fontSize: 17,
},
For left button text
barLeftButtonText: {
color: 'rgb(0, 122, 255)', //Your rgb color code here
textAlign: 'left',
fontSize: 17,
},