mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 22:39:41 +08:00
Use SceneView with SwitchNavigator to thread context through. Fixes #3646
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user