React-native-router-flux: drawerImage size

Created on 3 Jul 2016  路  5Comments  路  Source: aksonov/react-native-router-flux

I want to override the drawer image in the navBar.

Expected behaviour

An image gets automatically resized.

Actual behaviour

The image does not render if the image is larger than the default image, which is very small.
When using a small image, the icon is shown correctly.

Steps to reproduce

  1. Use an image of 700x700 pixels.
  2. <Scene key='main' drawerImage={require('../images/menu-icon.png')} />
  3. Drawer image is not rendered
bug

All 5 comments

I'm having the same issue

I can't get this reproduced. Can you give me an example of your full component?

I have the same issue when trying to change the drawerImage

Do it like this:

drawerImage={{uri: 'menu', height: 20, width: 20, resizeMode:'stretch', color: 'white'}}

or in your case probably this works :

drawerImage={{source: require('../../path'), height: 20, width: 20, resizeMode:'stretch', color: 'white'}}

Probably its not working in my case.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sylvainbaronnet picture sylvainbaronnet  路  3Comments

rafaelcorreiapoli picture rafaelcorreiapoli  路  3Comments

fgrs picture fgrs  路  3Comments

VictorK1902 picture VictorK1902  路  3Comments

sarovin picture sarovin  路  3Comments