DrawerLayoutAndroid drawerPosition now expects a string, number is deprecated

Summary: The native change to support strings was made in D15912607 on June 21st. Migrating the JS callsites now to start passing strings instead of the constants.

Reviewed By: zackargyle, mdvacca

Differential Revision: D16703569

fbshipit-source-id: cb1d8698df55d2961cde1e2b1fbfcba086a03bb2
This commit is contained in:
Eli White
2019-08-08 12:01:56 -07:00
committed by Facebook Github Bot
parent 0dcd57c73c
commit 305b0a2814
5 changed files with 19 additions and 17 deletions
@@ -60,7 +60,7 @@ type NativeProps = $ReadOnly<{|
/**
* Specifies the side of the screen from which the drawer will slide in.
*/
drawerPosition: ?Int32,
drawerPosition?: WithDefault<'left' | 'right', 'left'>,
/**
* Specifies the width of the drawer, more precisely the width of the view that be pulled in