react-native-shared-element: RNSharedElementTransition is not available

Im using react-native-cli project. Im using react-navigation 5 and your prerelease tag.

when i use Expo, i havent got any problem, but on Shared screen this message appear: RNSharedElementTransition is not available, did you forget to link react-native-shared-element into your project?

is a bug? i linked manually but i havent got nothing

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 15 (2 by maintainers)

Most upvoted comments

I have the same issue with expo, using react navigation v6

Hi, please provide a full repo containing the exact steps that you performed. Most likely, the project is not linked correctly into your XCode workspace.

Hi @melnikovkolya,

You are right. I was using the Preview Build, assuming it was the same thing. I had a go at it today and it worked straight ahead.

Thank you very much

@joelsoncastro

Since you are using expo version >49, the react-native-shared-element is still available, but you need to run expo run:ios/android, since it only works in the development builds.

E.g., there is this note at the header of the page https://docs.expo.dev/versions/v48.0.0/sdk/shared-element/

In SDK 49 and higher, this library will no longer be available in [Expo Go](https://docs.expo.dev/get-started/expo-go). You can still use it with [development builds](https://docs.expo.dev/develop/development-builds/introduction).