3.1.2 (2021-08-19)
- Suppport 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 - Recommended upgrading to [email protected] for the latest bug-fixes
- 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
- Fixes blink artefact on Android transitions (disables
detachInactiveScreens
by default on Android)
2.3.0 (2020-04-13)
- Add ‘debug’ option to
createSharedElementStackNavigator
- Add new example/test app in
./example
- Updated internal tooling to use
expo-module-scripts
- 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
2.2.0 (2020-03-15)
- Fix
defaultNavigationOptions
when it's a function. (thanks @praveen-me)
2.1.0 (2020-02-22)
- Fix no transition when navigators are nested inside
createSharedElementStackNavigator
. - Fix exception when nesting a Navigator inside
createSharedElementStackNavigator
.
2.0.2 (2020-02-13)
- Fix
defaultNavigationOptions
settings not working forcreateSharedElementStackNavigator
- Add missing typings to
createSharedElementStackNavigator
for routeConfig and navigatorConfig.
2.0.1 (2020-02-09)
- Add support for react-navigation-stack@2
- Add support for nested navigators
- 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,
...
},
{...}
);
1.0.0 (2020-01-26)
- update major version to
1
to correspond toreact-navigation-stack@1
- fixed type information on
SharedElement
to support all underlying props (thanks @iamsuneeth)
0.5.0 (2019-09-06)
- renamed package to
react-navigation-shared-element
(47f6a8a)
- The package has been renamed to
react-navigation-shared-element
0.4.5 (2019-09-04)
- fixed no transition on initial route (edde1d1)
0.4.4 (2019-09-03)
- fixed no or stale transition when switching route (goBack) too fast (f154a93)
0.4.3 (2019-09-02)
- fixed animation/resize/align fields & typing information (df11a0f)
0.4.2 (2019-09-02)
- fixed
onTransitionStart
exception (5adb650)
0.4.1 (2019-09-01)
0.4.0 (2019-09-01)
- fixed
navigation.setParams
not working (c0a5f6a)
- added new API which supports pop as well (9c4136d)
- The old API where the shared elements could be passed as props has been dropped. Instead you should define a static variable called
sharedElements
on your Screen component. That variable can be either a function or a static array. See the README for more details
0.3.3 (2019-08-30)
- fixed transitions not triggering in release builds (56b11d3)
0.3.2 (2019-08-30)
- fixed funky transition stuff from happening when popping a route (4567dc6)
- fixed routeConfigs that used {screen: Component} style config (00c74a5)
0.3.1 (2019-08-29)
- added support for nested stack navigators (69ddd7a)