Use SceneView with SwitchNavigator to thread context through. Fixes #3646

This commit is contained in:
Brent Vatne
2018-03-02 13:35:35 -08:00
parent 318788ca60
commit ba0b1861e5

View File

@@ -1,4 +1,5 @@
import React from 'react';
import SceneView from '../SceneView';
import withCachedChildNavigation from '../../withCachedChildNavigation';
class SwitchContainer extends React.Component {
@@ -14,7 +15,11 @@ class SwitchContainer extends React.Component {
);
return (
<ChildComponent navigation={childNavigation} screenProps={screenProps} />
<SceneView
component={ChildComponent}
navigation={childNavigation}
screenProps={screenProps}
/>
);
}
}