Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native customize android toolbar

I have a toolbar that currently looks like this

<ToolbarAndroid
        title='WWF'
        style={styles.toolbar}
        navIcon={require("./App/assets/logo.png")}
        logo={require("./App/assets/logo.png")}
        actions={[{title: 'list', show: 'always'}, {title: 'partners', show: 'always'}, {title: 'about',  show: 'always'}]}
        onActionSelected={this.onActionSelected} />

Is it possible to change the size and position of the logo? Currently it sits with a margin on the left and I would like to make it sit on the left corner of the screen and possible make it wider.

Also is it possible to have two images next to each other as the logo?

Thanks

like image 267
Adam Katz Avatar asked Nov 09 '22 21:11

Adam Katz


1 Answers

I don't think <ToolbarAndroid /> can be customized. You are probably better off doing your own component with <View /> to suit your needs, or take a look at the react-native-navbar library.

like image 196
damusnet Avatar answered Nov 14 '22 22:11

damusnet