Compare commits

..

2 Commits

Author SHA1 Message Date
Brent Vatne
439b4222ce Release 1.3.2 2018-03-02 13:36:47 -08:00
Brent Vatne
ba0b1861e5 Use SceneView with SwitchNavigator to thread context through. Fixes #3646 2018-03-02 13:35:56 -08:00
2 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "react-navigation",
"version": "1.3.1",
"version": "1.3.2",
"description": "Routing and navigation for your React Native apps",
"main": "src/react-navigation.js",
"repository": {

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}
/>
);
}
}