Stack V2 support 🎉🎉
Features
- Add support for react-navigation-stack@2
- Add support for nested navigators
BREAKING CHANGES
- The
createSharedElementStackNavigatorfunction has changed. It no longer takes thecreateStackNavigatorfunction 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,
...
},
{...}
);