diff --git a/src/views/Drawer.tsx b/src/views/Drawer.tsx index 988c8675..01ac4ec2 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