From 4b9044d9b2345ac29ffa8be8fadbfcf47768a123 Mon Sep 17 00:00:00 2001 From: Ionut Negru Date: Tue, 29 Oct 2019 21:03:53 +0200 Subject: [PATCH] https://github.com/react-navigation/drawer/issues/108 --- src/views/Drawer.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/Drawer.tsx b/src/views/Drawer.tsx index b38904e3..49e34c2d 100644 --- a/src/views/Drawer.tsx +++ b/src/views/Drawer.tsx @@ -181,7 +181,9 @@ export default class DrawerView extends React.PureComponent { private position = new Value(0); private containerWidth = new Value(0); - private drawerWidth = new Value(0); + private drawerWidth = new Value( + this.props.drawerStyle && this.props.drawerStyle.width ? Number(this.props.drawerStyle.width) : 0 + ); private drawerOpacity = new Value(0); private drawerPosition = new Value( this.props.drawerPosition === 'right' ? DIRECTION_RIGHT : DIRECTION_LEFT