mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-01 09:23:16 +08:00
Fix typos in NavigationExperimental
Summary: Closes https://github.com/facebook/react-native/pull/6749 Differential Revision: D3122485 fb-gh-sync-id: 86f10407a398f9dc73177f3d85076729e4d8d574 fbshipit-source-id: 86f10407a398f9dc73177f3d85076729e4d8d574
This commit is contained in:
committed by
Facebook Github Bot 1
parent
6a3b334139
commit
b098d0e839
@@ -189,7 +189,7 @@ class NavigationLegacyNavigator extends React.Component<any, Props, State> {
|
||||
return this._stack.toArray();
|
||||
}
|
||||
|
||||
// Lyfe cycle and private methods below.
|
||||
// Life cycle and private methods below.
|
||||
|
||||
shouldComponentUpdate(nextProps: Object, nextState: Object): boolean {
|
||||
return ReactComponentWithPureRenderMixin.shouldComponentUpdate.call(
|
||||
@@ -254,7 +254,7 @@ class NavigationLegacyNavigator extends React.Component<any, Props, State> {
|
||||
}
|
||||
|
||||
_renderHeader(props: NavigationSceneRendererProps): ?ReactElement {
|
||||
// `_renderHeader` is the always called before `_renderCard`. We should
|
||||
// `_renderHeader` is always called before `_renderCard`. We should
|
||||
// subscribe to the position here.
|
||||
this._positionListener && this._positionListener.remove();
|
||||
this._positionListener = new NavigationAnimatedValueSubscription(
|
||||
|
||||
Reference in New Issue
Block a user