v1.0.0-beta.20
Breaking Changes
-
Add previous scene to tabBarOnPress (#2790) - thanks @pietro909
Now the callback to handle tap events is an object containing:- the
previousScene: { route, index }
which is the scene we are leaving - the
scene: { route, index }
that was tapped - the
jumpToIndex
method that can perform the navigation for you
- the
New Features
- Allow custom header and back button to use the props from react-navigation (#2712) - thanks @vonovak
- Update TabBarBottom to accept styling for animations (#2945) - thanks @mujavidb
- Dispatch can be called multiple times per tick (#1313) - thanks @dantman
- Update to react-native@0.50 and flow-bin@0.56 (#2998) - thanks @Ashoat & @skevy
- Allow transition configuration between tabs (#2222) - thanks @davidtrogers
Bugfixes & Improvements
- Export all Flow types from TypeDefinition (#2903) - thanks @hawkrives
- SafeAreaView - Fix for Web usage (#2950) - thanks @rmevans9
- prevent error RawText "" must be wrapped in an explicit component (#2415) - thanks @rohozhnikoff
- fix #2953 (#2976) - thanks @vonovak
- Move SafeAreaView out of DrawerNavigatorItems to DrawerSidebar. (#2967) - thanks @davepack
- Add toString() with type for each NavigationAction (#2260) - thanks @jamesreggio
- Fix default width of drawer (#2978) - thanks @dantman
- Allow strings Component types through as screens (#2999) - thanks @Ashoat & @brentvatne
- Simplify and improve TabBar handling of keyboard (#3013) - thanks @vonovak
Documentation
- Fix Comparisons Link in Readme (#2910) - thanks @tim-soft
- Fix 'good first issue' link in README (#2919) - thanks @zachbradshaw
- Added a guide under intermediate concepts. (#2958) - thanks @shubhnik
- Update Guide-Headers.md (#2949) - thanks @vonovak
- Improvement in redux-integration documentation. (#2964) - thanks @shubhnik
- Update withNavigation.md (#2988) - thanks @vonovak
- fix typo in Guide-Headers.md (#3000) - thanks @blogscot
Repository chores
- Improve Contributing Guide (#2960) - thanks @spencercarli