From ccf76e98cc453a392541c3d60e9bb7cc7cf9972c Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Fri, 8 Jun 2018 16:12:09 -0700 Subject: [PATCH] Use SceneView instead of DrawerScreen directly --- packages/drawer/src/views/DrawerView.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/drawer/src/views/DrawerView.js b/packages/drawer/src/views/DrawerView.js index 32ea1544..a971c8e9 100644 --- a/packages/drawer/src/views/DrawerView.js +++ b/packages/drawer/src/views/DrawerView.js @@ -1,6 +1,7 @@ import React from 'react'; import { Dimensions } from 'react-native'; import DrawerLayout from 'react-native-drawer-layout-polyfill'; +import { SceneView } from 'react-navigation'; import DrawerSidebar from './DrawerSidebar'; import DrawerActions from '../routers/DrawerActions'; @@ -104,8 +105,6 @@ export default class DrawerView extends React.PureComponent { const activeKey = state.routes[state.index].key; const descriptor = this.props.descriptors[activeKey]; - const DrawerScreen = descriptor.getComponent(); - const { drawerLockMode } = descriptor.options; return ( @@ -132,9 +131,10 @@ export default class DrawerView extends React.PureComponent { : DrawerLayout.positions.Left } > - );