mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out of D3000972
Reviewed By: dmmiller Differential Revision: D3003211 fb-gh-sync-id: e64f1f17dcbf19a32066de91d6e839d59cd5d27c shipit-source-id: e64f1f17dcbf19a32066de91d6e839d59cd5d27c
This commit is contained in:
committed by
Facebook Github Bot 9
parent
36f1961003
commit
5ffeb9764c
@@ -27,7 +27,6 @@ var {
|
||||
RootContainer: NavigationRootContainer,
|
||||
Reducer: NavigationReducer,
|
||||
Header: NavigationHeader,
|
||||
HeaderTitle: NavigationHeaderTitle,
|
||||
} = NavigationExperimental;
|
||||
|
||||
const NavigationBasicReducer = NavigationReducer.StackReducer({
|
||||
@@ -61,6 +60,12 @@ class NavigationAnimatedExample extends React.Component {
|
||||
/>
|
||||
);
|
||||
}
|
||||
handleBackAction() {
|
||||
return (
|
||||
this.navRootContainer &&
|
||||
this.navRootContainer.handleNavigation(NavigationRootContainer.getBackAction())
|
||||
);
|
||||
}
|
||||
_renderNavigated(navigationState, onNavigate) {
|
||||
if (!navigationState) {
|
||||
return null;
|
||||
@@ -69,13 +74,11 @@ class NavigationAnimatedExample extends React.Component {
|
||||
<NavigationAnimatedView
|
||||
navigationState={navigationState}
|
||||
style={styles.animatedView}
|
||||
renderOverlay={(scenes, index, position, layout) => (
|
||||
renderOverlay={(props) => (
|
||||
<NavigationHeader
|
||||
scenes={scenes}
|
||||
index={index}
|
||||
position={position}
|
||||
layout={layout}
|
||||
renderTitleComponent={pageState => <NavigationHeaderTitle>{pageState.key}</NavigationHeaderTitle>}
|
||||
navigationState={props.navigationParentState}
|
||||
position={props.position}
|
||||
getTitle={state => state.key}
|
||||
/>
|
||||
)}
|
||||
setTiming={(pos, navState) => {
|
||||
@@ -118,7 +121,7 @@ const styles = StyleSheet.create({
|
||||
flex: 1,
|
||||
},
|
||||
scrollView: {
|
||||
marginTop: NavigationHeader.APPBAR_HEIGHT + NavigationHeader.STATUSBAR_HEIGHT,
|
||||
marginTop: 64
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user