From 6fc21250ec823e9a335746e9ba2c12724fe571fc Mon Sep 17 00:00:00 2001 From: Simone D'Avico Date: Wed, 25 Jul 2018 20:49:24 +0200 Subject: [PATCH] Fix typo in header transition preset check (uitkit -> uikit) (#4757) --- CHANGELOG.md | 3 +++ src/views/StackView/StackViewLayout.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c681e8df..5dcb8271 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - Incorrect parameters passed to title offset calculation led to bug in header layout when no right component (https://github.com/react-navigation/react-navigation/issues/4754) +### Fixed +- Typo in Header transition preset check. + ## [2.9.0] - [2018-07-20](https://github.com/react-navigation/react-navigation/releases/tag/2.9.0) ### Added - `headerLayoutPreset: 'center' | 'left'` to provide an easy solution for [questions like this](https://github.com/react-navigation/react-navigation/issues/4615). diff --git a/src/views/StackView/StackViewLayout.js b/src/views/StackView/StackViewLayout.js index 99fb31f0..33aeb419 100644 --- a/src/views/StackView/StackViewLayout.js +++ b/src/views/StackView/StackViewLayout.js @@ -490,7 +490,7 @@ class StackViewLayout extends React.Component { if (headerLayoutPreset) { if (__DEV__) { if ( - this._getHeaderTransitionPreset() === 'uitkit' && + this._getHeaderTransitionPreset() === 'uikit' && headerLayoutPreset === 'left' && Platform.OS === 'ios' ) {