React-native-router-flux: warning drawer router flux

Created on 12 Oct 2019  路  9Comments  路  Source: aksonov/react-native-router-flux

hi,
warning:

_Setting DrawerLayoutAndroid drawerPosition using DrawerLayoutAndroid.positions is deprecated. Instead pass the string value "left" or "right"_

*I used the code below but show warning top*

<Drawer
              key="drawer"
              contentComponent={DrawerContent}
              drawerPosition="right">
<Scene ....
<Scene ....
</Drawer>

please help to me

Most helpful comment

same thing happend just after RN upgrade. i'm also waiting for solution.

in case you can disable warning just add

YellowBox.ignoreWarnings([ 'DrawerLayoutAndroid drawerPosition' , ]);
ss

this code at your index.js file.

All 9 comments

same thing here. Any solution ?

same thing happend just after RN upgrade. i'm also waiting for solution.

in case you can disable warning just add

YellowBox.ignoreWarnings([ 'DrawerLayoutAndroid drawerPosition' , ]);
ss

this code at your index.js file.

This is deprecated since React-native 0.61.0
" DrawerLayoutAndroid drawerPosition now expects a string, number is deprecated "

https://github.com/aksonov/react-native-router-flux/issues/3581#issuecomment-54322490

陌'm already give string value (left,rigth) as expected. but still same warning i have..

no fix yet?

no fix yet?

there is a fix for that but its on rnrf beta version (4.1.0-beta.2) .

before install that you must install this dependencies : yarn add react-native-reanimated react-native-gesture-handler react-native-screens@^1.0.0-alpha.23 (just copy-paste)
for react navigation 4.x : https://reactnavigation.org/docs/en/getting-started.html

no fix yet?

there is a fix for that but its on rnrf beta version (4.1.0-beta.2) .

before install that you must install this dependencies : yarn add react-native-reanimated react-native-gesture-handler react-native-screens@^1.0.0-alpha.23 (just copy-paste)
for react navigation 4.x : https://reactnavigation.org/docs/en/getting-started.html

thank you

@fekajin Thanks! I add YellowBox.ignoreWarnings([ 'DrawerLayoutAndroid drawerPosition' , ]); and work for me!

1 year later? 馃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xnog picture xnog  路  3Comments

YouYII picture YouYII  路  3Comments

kirankalyan5 picture kirankalyan5  路  3Comments

willmcclellan picture willmcclellan  路  3Comments

wootwoot1234 picture wootwoot1234  路  3Comments