IjzerenHein / react-navigation-shared-element-demo

A simple app that demonstrates how to use react-navigation-shared-element in react-native
65 stars 8 forks source link

'transitionConfig' is removed in favor of the new animation APIs #3

Closed yolpsoftware closed 2 years ago

yolpsoftware commented 4 years ago

I'm getting a deprecation warning when using transitionConfig in the createSharedElementStackNavigator. Apparently there is a new API out there.

More info: https://stackoverflow.com/questions/59611691/transitionconfig-is-removed-in-favor-of-the-new-animation-apis

Seems this demo needs to be updated.

IjzerenHein commented 4 years ago

Which version of react-native-stack are you using? Currently, the v2 version of stack is not yet supported and a rewrite is still in progress. You can find more info here: https://github.com/IjzerenHein/react-navigation-shared-element/issues/16

yolpsoftware commented 4 years ago

Here are the versions:

react-native: 0.61.4
react-native-shared-element: 0.5.5
react-navigation: 4.1.0
react-navigation-shared-element: 1.0.0
react-navigation-stack: 2.0.16

Gonna try an older version of react-navigation-stack, thank you.

IjzerenHein commented 4 years ago

v1 of stack should work. If you want to try v2, then check out this branch: https://github.com/IjzerenHein/react-navigation-shared-element/blob/master/README_v2.md