reactjs - How to change background color of drawer in react-navigation fully -
how can change background color of drawer fully? don't need change drawer items need change background color of drawer fully. default, it's white while need make green. there demo example?
this current example can , drawernavigtor using drawercontent , need change style of drawercontent
const main = drawernavigator({ home: { screen: homepage }, }, { drawerwidth: 250, drawerposition: 'right', contentcomponent: props => <drawercontent {...props} />, }); export default main; can change style using code below
class drawercontent extends component { render() { return ( <scrollview style={styles.container}> <view style={{ flex: 1 }}> <button transparent info onpress={() => { this.handlechange(); }}> <text style={{ fontsize: 16 }}>change email</text> </button> </view> </scrollview> ); } }
const styles = { container: { flex: 1, padding: 20, backgroundcolor: 'green', }, };
export default drawercontent; can change background color
Comments
Post a Comment