Releases: IjzerenHein/react-navigation-shared-element
Releases · IjzerenHein/react-navigation-shared-element
v3.1.4
v3.1.3
React Navigation 5 & 6 🚀 🎉
3.1.2 (2021-08-19)
Features
- Support for react-navigation 5 & 6 🚀
- Unifies codebase to support both the react-navigation 4 and 5/6 APIs
- New
example
app to showcase and test navigation scenarios - Recommend upgrading to [email protected] for the latest Native bug-fixes
Breaking changes
- React navigation 4 is now supported through the
createSharedElementStackNavigator/build/v4
import sharedElements
function replacesnavigation/otherNavigation
byroute/otherRoute
arguments- See migration guide in
./docs/Migration.md
for upgrading instructions
Bug Fixes
- Fixes blink artefact on Android transitions (disables
detachInactiveScreens
by default on Android)
(prerelease 3.0.0)
Features
- Add suppport for react-navigation 5.x 🚀
- Codebase and tests now supports both the 4.x and 5.x APIs
Breaking changes
- React navigation 4 is now supported through the
createSharedElementStackNavigator4
export
sharedElements
function replacesnavigation/otherNavigation
byroute/otheRoute
arguments - See migration guide in
./docs/Migration.md
for upgrading instructions
v2.3.0
Features
- Add ‘debug’ option to
createSharedElementStackNavigator
- Add new example/test app in
./example
- Updated internal tooling to use
expo-module-scripts
Bug Fixes
- Fix back navigation no longer working with latest navigation/stack
- Fix element stuck after navigating back on nested navigators
- Fix transition when starting a new transition before previous had ended
- Fix result typings for
createSharedElementStackNavigator
react-navigation@5 alpha1
v2.2.0
Bug Fixes
- Fix
defaultNavigationOptions
when it's a function. (thanks @praveen-me)
v2.1.0
Bug Fixes
- Fix no transition when navigators are nested inside
createSharedElementStackNavigator
. - Fix exception when nesting a Navigator inside
createSharedElementStackNavigator
.
v2.0.2
Bug Fixes
- Fix
defaultNavigationOptions
settings not working forcreateSharedElementStackNavigator
(thanks @tankers746) - Add missing typings to
createSharedElementStackNavigator
for routeConfig and navigatorConfig (thanks @tankers746)
Stack V2 support 🎉🎉
Features
- Add support for react-navigation-stack@2
- Add support for nested navigators
BREAKING CHANGES
- The
createSharedElementStackNavigator
function has changed. It no longer takes thecreateStackNavigator
function as an input.
Previous (v1):
import { createSharedElementStackNavigator } from 'react-navigation-shared-element';
import { createStackNavigator } from 'react-navigation-stack';
const stackNav = createSharedElementStackNavigator(
createStackNavigator,
{
Main: MainScreen,
...
},
{...}
);
Now (v2):
import { createSharedElementStackNavigator } from 'react-navigation-shared-element';
const stackNav = createSharedElementStackNavigator(
{
Main: MainScreen,
...
},
{...}
);