how to style react-native-router-flux? -
i using react-native-router-flux 4.0.0-beta.17 learning project. need customize header. instance background color, title alignment, etc. couldn't find document it. 1 of them had
 <router scenestyle={{backgroundcolor: '#81b71a'}}>      <scene key="root">         <scene key='login' component={loginform} title='please login :)' />      </scene>  </router>   but doesn't anything.
please give me reference docs , if possible, information how style router. can find comprehensive document?
the scenestyle props used styling of rnrf scene/screen, content part of screen below of header. if want give custom style of rnrf scene header, have use navigationbarstyle props in rnrf router component.
<router navigationbarstyle={{ backgroundcolor: '#81b71a' }}>   <scene key="root">     <scene key='login' component={loginform} title='please login :)' />   </scene> </router>   below 1 of snapshot example if use it.
ref: https://github.com/aksonov/react-native-router-flux/blob/master/docs/api.md

Comments
Post a Comment