From b098d0e8393cde31ce971e320c250b950761625a Mon Sep 17 00:00:00 2001 From: Nicolas Charpentier Date: Thu, 31 Mar 2016 13:54:00 -0700 Subject: [PATCH] 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 --- .../NavigationExperimental/NavigationLegacyNavigator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/CustomComponents/NavigationExperimental/NavigationLegacyNavigator.js b/Libraries/CustomComponents/NavigationExperimental/NavigationLegacyNavigator.js index 440f7706c..1642f526d 100644 --- a/Libraries/CustomComponents/NavigationExperimental/NavigationLegacyNavigator.js +++ b/Libraries/CustomComponents/NavigationExperimental/NavigationLegacyNavigator.js @@ -189,7 +189,7 @@ class NavigationLegacyNavigator extends React.Component { 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 { } _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(