UNPKG

15.5 kBMarkdownView Raw
1# Changelog
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
8## Unreleased
9
10- Add missing Flow type exports for `ScrollView` and `NavigationContext`
11
12## [3.11.1]
13
14## Fixes
15
16- Fix `navigationOptions` type from `NavigationScreenProp<NavigationRoute>` to `NavigationScreenConfig<Options>`.
17- Fix missing `isFirstRouteInParent` type in typescript and flow.
18- Add missing `backTitleVisible` for typescript, `disabled` and `backTitleVisible` for flow definitions in type `HeaderBackButtonProps`
19- Add missing `keyboardHidesTabBar` for TypeScript to `TabViewConfig.tabBarOptions`
20- Add missing `unmountInactiveRoutes` for TypeScript to `DrawerNavigatorConfig`
21
22## [3.11.0]
23
24## New Features
25
26- Export `SwitchActions`
27
28## [3.10.2]
29
30## Fixes
31
32- Update Flow types - Add `cardShadowEnabled` and `cardOverlayEnabled` to NavigationStackViewConfig
33- Upgrade react-navigation-tabs [#5914](https://github.com/react-navigation/react-navigation/issues/5914)
34
35## [3.10.0] - [2019-05-16](https://github.com/react-navigation/react-navigation/releases/tag/3.10.0)
36
37## Removed
38
39- `persistenceKey` no longer automatically saves and restores navigation state using AsyncStorage. Typically this would be a breaking change that would require a major version bump, but because this has always been marked as experimental in the documentation and it is unlikely to impact production apps, we are rolling it in a minor release. `persistenceKey` has been replaced with `persistNavigationState` and `loadNavigationState`. See the diff in docs: https://github.com/react-navigation/react-navigation.github.io/pull/425/files?short_path=b668b1a#diff-b668b1a4201e40b1378036dc012100fe
40
41## Changed
42
43- Removed animations from stack on web
44- Ensure that headerMode is float by default on web
45
46## Fixes
47
48- Prevent transitionConfig's useNativeDriver value being overwritten. (https://github.com/react-navigation/stack/commit/8b2af7d94209d4658abd8d799bc78744a1004b4e)
49- Update typescript with headerLeftContainerStyle and headerRightContainerStyle
50- Update typescript - Add `safeAreaInset` to `BottomTabBarProps`
51- Update typescript - `TabBarTop` is now `MaterialTopTabBar`
52- Update typescript - Remove `SwitchNavigator`, `TabNavigator` and `StackNavigator`. Added exports for `SceneView` and `SwitchRouter`
53- Update typescript - `getLabel` is now `getLabelText` in BottomTabProps and TopTabProps
54- Silence deprecated lifecycle warning in Stack Transitioner
55
56## [3.9.0] - [2019-04-23](https://github.com/react-navigation/react-navigation/releases/tag/3.9.0)
57
58## Fixes
59
60- Remove `createTabNavigator` from type definitions
61- Add missing types for `DrawerNavigatorConfig`
62- Use `preserveFocus` action param rather than matching on specific action types to determine if index needs to be updated if child router changes (https://github.com/react-navigation/react-navigation-core/pull/56)
63
64## [3.8.1] - [2019-04-12](https://github.com/react-navigation/react-navigation/releases/tag/3.8.1)
65
66## Changed
67
68- Add missing type for `enableURLHandling` to TypeScript definition (#5803)
69- Update Flow types (#5806)
70
71## [3.8.0] - [2019-04-12](https://github.com/react-navigation/react-navigation/releases/tag/3.8.0)
72
73## Fixes
74
75- `onRefresh` on exported lists `FlatList` and `SectionList` works as expected now (no need to add `refreshControl` prop explicitly)
76- On Android, the exported `ScrollView` is now same as the React Native ScrollView (but with scroll-to-top behavior added), whereas on iOS we still use react-native-gesture-handler ScrollView. We can change Android back to react-native-gesture-handler ScrollView when https://github.com/kmagiera/react-native-gesture-handler/issues/560 is resolved.
77- Look for `scrollResponderScrollTo` function in our ScrollView, in react-native 0.59 the interface appears to have changed for FlatList such that this is needed. (react-navigation-native#20)
78
79## Changed
80
81- Stack header style improvements for web (react-navigation-stack#104)
82
83## [3.7.1] - [2019-04-10](https://github.com/react-navigation/react-navigation/releases/tag/3.7.1)
84
85## Fixes
86
87- Update Flow types (#5800 and #5801)
88- More open `navigationOptions` types for bottom tab navigator config (#5796)
89- Fix hit slop for bottom tab bar (react-navigation-tabs#110)
90
91## Added
92
93- Add accessibility role and state to bottom bar (react-navigation-tabs#90)
94- Hide tab bar when keyboard is shown (react-navigation-tabs#112)
95- Specify default values for getAccessibilityX on tabs (react-navigation-tabs##116)
96- Add a isFirstRouteInParent method to navigation object (react-navigation-core#51)
97
98## [3.6.1] - [2019-04-02](https://github.com/react-navigation/react-navigation/releases/tag/3.6.1)
99
100## Fixed
101
102- Move event subscriptions to constructor in `withNavigationFocus` to ensure initial `didFocus` event is received.
103
104## [3.6.0] - [2019-03-31](https://github.com/react-navigation/react-navigation/releases/tag/3.6.0)
105
106## Added
107
108- Export TabBarIconProps, TabBarLabelProps, DrawerIconProps, DrawerLabelProps, ScreenProps and InitialLayout.
109- Add `disabled` prop to HeaderBackButton
110- Add `StackViewTransitionConfigs.NoAnimation`
111- Add `drawerContainerStyle` to navigator config for drawer navigator
112
113## [3.5.1] - [2019-03-19](https://github.com/react-navigation/react-navigation/releases/tag/3.5.1)
114
115## Added
116
117- Export StackGestureContext and DrawerGestureContext
118- Add missing type for withOrientation
119
120## Fixed
121
122- Fix header HeaderBackButton title TypeScript type
123
124## [3.5.0] - [2019-03-19](https://github.com/react-navigation/react-navigation/releases/tag/3.5.0)
125
126## Fixed
127
128- Fixed types for `BottomTabBar`
129- export `NavigationContext` type
130
131## Changed
132
133- Make 'react-native-gesture-handler' a peer dependency rather than a hard dependency
134
135## [3.4.1] - [2019-03-16](https://github.com/react-navigation/react-navigation/releases/tag/3.4.1)
136
137## Fixed
138
139- Fix missing TypeScript definitions file in release package
140
141## [3.4.0] - [2019-03-15](https://github.com/react-navigation/react-navigation/releases/tag/3.4.0)
142
143## Added
144
145- TypeScript type definition now included in the project.
146- Better support for react-native-web in core and stack.
147
148## Fixed
149
150- Default key to null in stack reset action (https://github.com/react-navigation/react-navigation-core/commit/59238160d86284a3353d53af10688fcf3f36004f)
151- Fix header back button label and title label scaling. Defaults to false. (https://github.com/react-navigation/react-navigation-stack/commit/c1f1dff465e9eebe274a08e274cf10570045fa23)
152
153## Changed
154
155- Remove react-lifecycles-compat from @react-navigation/core
156- NavigationPlayground uses TypeScript
157
158## [3.3.2] - [2019-02-25](https://github.com/react-navigation/react-navigation/releases/tag/3.3.2)
159
160## Fixed
161
162- Updated Flow types (https://github.com/react-navigation/react-navigation/commit/d3040e52b39bc8e91ffc1354d9c5f8c096baf597)
163
164## [3.3.1] - [2019-02-25](https://github.com/react-navigation/react-navigation/releases/tag/3.3.1)
165
166## Fixed
167
168- SafeAreaView bottom inset on iPhone XR and XS fixed. (https://github.com/react-navigation/react-navigation/issues/5625)
169
170## [3.3.0] - [2019-02-16](https://github.com/react-navigation/react-navigation/releases/tag/3.3.0)
171
172## Added
173
174- Pass through `drawerOpenProgress` to drawer content component (https://github.com/react-navigation/react-navigation-drawer/pull/40)
175
176## [3.2.3] - [2019-02-09](https://github.com/react-navigation/react-navigation/releases/tag/3.2.3)
177
178## Fixed
179
180- `await` the result of `onTransitionStart` before starting the transition (https://github.com/react-navigation/react-navigation-stack/pull/79)
181
182## [3.2.2]
183
184- Oops, I skipped it. Nothing here.
185
186## [3.2.1] - [2019-02-09](https://github.com/react-navigation/react-navigation/releases/tag/3.2.1)
187
188## Fixed
189
190- Remove accidental console.log
191
192## [3.2.0] - [2019-02-08](https://github.com/react-navigation/react-navigation/releases/tag/3.2.0)
193
194## Added
195
196- Add support for `backBehavior: history'` and `backBehavior: 'order'` to any navigator based on SwitchRouter (eg: tab navigators). (https://github.com/react-navigation/react-navigation-core/pull/31)
197
198## [3.1.5] - [2019-02-06](https://github.com/react-navigation/react-navigation/releases/tag/3.1.5)
199
200## Fixed
201
202- Revert "Transparent header measurement fix (https://github.com/react-navigation/react-navigation-stack/pull/71)"
203
204## [3.1.4] - [2019-02-05](https://github.com/react-navigation/react-navigation/releases/tag/3.1.4)
205
206## Fixed
207
208- Fix references to onGestureFinish in StackViewLayout, should be onGestureEnd
209
210## [3.1.3] - [2019-02-04](https://github.com/react-navigation/react-navigation/releases/tag/3.1.3)
211
212## Fixed
213
214- Stack navigator properly dismisses and restores keyboard when gesture starts and is cancelled
215- Transparent header measurement fix (https://github.com/react-navigation/react-navigation-stack/pull/71)
216
217## [3.1.2] - [2019-02-01](https://github.com/react-navigation/react-navigation/releases/tag/3.1.2)
218
219## Fixed
220
221- Update flow definition for `withNavigation` and `withNavigationFocus` to support `defaultProps`
222- Prevent onRef callback be called twice on withNavigationFocus components (https://github.com/react-navigation/react-navigation-core/pull/30)
223- Bump react-navigation-drawer version to improve performance - if you use Expo, you will need expo@^32.0.3 to update!
224
225## [3.0.9] - [2018-12-19](https://github.com/react-navigation/react-navigation/releases/tag/3.0.9)
226
227## Fixed
228
229- Intermittent flicker when changing tabs while using react-native-screens fixed by not changing opacity (https://github.com/react-navigation/react-navigation-tabs/pull/80)
230- Prevent fading the previous screen on push/pop on Android (https://github.com/react-navigation/react-navigation-stack/pull/73)
231
232## [3.0.8] - [2018-12-08](https://github.com/react-navigation/react-navigation/releases/tag/3.0.8)
233
234## Changed
235
236- Lock create-react-context to 0.2.2
237
238## [3.0.7] - [2018-12-08](https://github.com/react-navigation/react-navigation/releases/tag/3.0.7)
239
240## Changed
241
242- Optimize stack gesture to avoid a setState and reduce unnecessary Animated node creation (https://github.com/react-navigation/react-navigation-stack/pull/70)
243
244## [3.0.6] - [2018-12-06](https://github.com/react-navigation/react-navigation/releases/tag/3.0.6)
245
246## Fixes
247
248- Fix drawer accessibility label when drawer label is not a string
249
250## [3.0.5] - [2018-12-03](https://github.com/react-navigation/react-navigation/releases/tag/3.0.5)
251
252## Fixes
253
254- Fix crash in rare case where onNavigationStateChange on container leads to setState and container has screenProps (https://github.com/react-navigation/react-navigation/issues/5301)
255- Expose underlaying ScrollView methods to NavigationAwareScrollable (https://github.com/react-navigation/react-navigation-native/pull/8)
256
257## [3.0.4] - [2018-11-30](https://github.com/react-navigation/react-navigation/releases/tag/3.0.4)
258
259## Changed
260
261- Lock dependencies to exact versions
262
263## Fixes
264
265- Fix crash when screenInterpolator is null (https://github.com/react-navigation/react-navigation-stack/issues/64)
266- Fix renderPager override (https://github.com/react-navigation/react-navigation-tabs/pull/70)
267
268## Added
269
270- Accessibility labels on drawer items (https://github.com/react-navigation/react-navigation-drawer/pull/30)
271
272## [3.0.3] - [2018-11-30](https://github.com/react-navigation/react-navigation/releases/tag/3.0.3)
273
274## Fixes
275
276- Fix bug where if you navigate immediately when the navigator is first mounted the stack could get in an invalid state.
277- Transparent stack card factors in header height now, even though you probably won't want to use this.
278- Fix bug where shadow was still rendered on transparent stack
279- Fix gestureResponseDistance custom values being ignored for modal stack
280
281## [3.0.2] - [2018-11-27](https://github.com/react-navigation/react-navigation/releases/tag/3.0.2)
282
283## Fixes
284
285- Fix `drawerLockMode` on drawer navigator
286- Fix RTL support in drawer navigator
287
288## [3.0.1] - [2018-11-26](https://github.com/react-navigation/react-navigation/releases/tag/3.0.1)
289
290## Fixes
291
292- fix NavigationTestUtils.js deprecated file import.
293- Update `getParam` flow typings to check `key` and `fallback` arguments, as well as return the correct type automatically.
294- Fix regression in backgroundColor on cardStyle for stack navigator.
295
296## [3.0.0] - [2018-11-17](https://github.com/react-navigation/react-navigation/releases/tag/3.0.0)
297
298- Changes between the latest 2.x release and 3.0.0 are listed on the blog at https://reactnavigation.org/blog/2018/11/17/react-navigation-3.0.html
299
300# [Previous major versions]
301
302- [2.x](https://github.com/react-navigation/react-navigation/blob/2.x/CHANGELOG.md)
303
304[Unreleased]: Fixed NavigationStackScreenOptions types by adding headerTitleContainerStyle
305[Unreleased]: https://github.com/react-navigation/react-navigation/compare/3.10.0...HEAD
306[3.10.0]: https://github.com/react-navigation/react-navigation/compare/3.10.0...3.9.0
307[3.9.0]: https://github.com/react-navigation/react-navigation/compare/3.8.1...3.9.0
308[3.8.1]: https://github.com/react-navigation/react-navigation/compare/3.8.0...3.8.1
309[3.8.0]: https://github.com/react-navigation/react-navigation/compare/3.7.1...3.8.0
310[3.7.1]: https://github.com/react-navigation/react-navigation/compare/3.6.1...3.7.1
311[3.6.1]: https://github.com/react-navigation/react-navigation/compare/3.6.0...3.6.1
312[3.6.0]: https://github.com/react-navigation/react-navigation/compare/3.5.1...3.6.0
313[3.5.1]: https://github.com/react-navigation/react-navigation/compare/3.5.0...3.5.1
314[3.5.0]: https://github.com/react-navigation/react-navigation/compare/3.4.1...3.5.0
315[3.4.1]: https://github.com/react-navigation/react-navigation/compare/3.4.0...3.4.1
316[3.4.0]: https://github.com/react-navigation/react-navigation/compare/3.3.2...3.4.0
317[3.3.2]: https://github.com/react-navigation/react-navigation/compare/3.3.1...3.3.2
318[3.3.1]: https://github.com/react-navigation/react-navigation/compare/3.3.0...3.3.1
319[3.3.0]: https://github.com/react-navigation/react-navigation/compare/3.2.3...3.3.0
320[3.2.3]: https://github.com/react-navigation/react-navigation/compare/3.2.1...3.2.3
321[3.2.1]: https://github.com/react-navigation/react-navigation/compare/3.2.0...3.2.1
322[3.2.0]: https://github.com/react-navigation/react-navigation/compare/3.1.5...3.2.0
323[3.1.5]: https://github.com/react-navigation/react-navigation/compare/3.1.4...3.1.5
324[3.1.4]: https://github.com/react-navigation/react-navigation/compare/3.1.3...3.1.4
325[3.1.3]: https://github.com/react-navigation/react-navigation/compare/3.1.2...3.1.3
326[3.1.2]: https://github.com/react-navigation/react-navigation/compare/3.0.9...3.1.2
327[3.0.9]: https://github.com/react-navigation/react-navigation/compare/3.0.8...3.0.9
328[3.0.8]: https://github.com/react-navigation/react-navigation/compare/3.0.7...3.0.8
329[3.0.7]: https://github.com/react-navigation/react-navigation/compare/3.0.6...3.0.7
330[3.0.6]: https://github.com/react-navigation/react-navigation/compare/3.0.5...3.0.6
331[3.0.5]: https://github.com/react-navigation/react-navigation/compare/3.0.4...3.0.5
332[3.0.4]: https://github.com/react-navigation/react-navigation/compare/3.0.3...3.0.4
333[3.0.3]: https://github.com/react-navigation/react-navigation/compare/3.0.2...3.0.3
334[3.0.2]: https://github.com/react-navigation/react-navigation/compare/3.0.1...3.0.2
335[3.0.1]: https://github.com/react-navigation/react-navigation/compare/3.0.0...3.0.1
336[3.0.0]: https://github.com/react-navigation/react-navigation/compare/2.x...3.0.0