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
@@ -28,7 +28,6 @@ const {
|
||||
Container: NavigationContainer,
|
||||
RootContainer: NavigationRootContainer,
|
||||
Header: NavigationHeader,
|
||||
HeaderTitle: NavigationHeaderTitle,
|
||||
Reducer: NavigationReducer,
|
||||
View: NavigationView,
|
||||
} = NavigationExperimental;
|
||||
@@ -155,15 +154,13 @@ class ExampleTabScreen extends React.Component {
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
_renderHeader(scenes, index, position, layout) {
|
||||
_renderHeader(props) {
|
||||
return (
|
||||
<NavigationHeader
|
||||
scenes={scenes}
|
||||
index={index}
|
||||
position={position}
|
||||
layout={layout}
|
||||
renderTitleComponent={pageState => <NavigationHeaderTitle>{stateTypeTitleMap(pageState)}</NavigationHeaderTitle>}
|
||||
navigationState={props.navigationParentState}
|
||||
position={props.position}
|
||||
layout={props.layout}
|
||||
getTitle={state => stateTypeTitleMap(state)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -273,7 +270,7 @@ const styles = StyleSheet.create({
|
||||
flex: 1,
|
||||
},
|
||||
scrollView: {
|
||||
marginTop: NavigationHeader.APPBAR_HEIGHT + NavigationHeader.STATUSBAR_HEIGHT,
|
||||
marginTop: 64
|
||||
},
|
||||
tabContent: {
|
||||
flex: 1,
|
||||
|
||||
Reference in New Issue
Block a user