react-native-motion icon indicating copy to clipboard operation
react-native-motion copied to clipboard

Warning: moveSharedElement is required

Open ghost opened this issue 6 years ago • 9 comments
trafficstars

I'm getting a warning

Warning: Failed context type: The context moveSharedElement is marked as required in SharedElement, but its value is undefined.

when I use the SharedElement.. what value should I give to that property?

ghost avatar Nov 28 '18 21:11 ghost

I'm also getting this.

nandorojo avatar Jan 07 '19 01:01 nandorojo

@xotahal are we going to get response?

rahul13agrawal avatar May 20 '19 19:05 rahul13agrawal

Getting same issue.. No solution ?

okechukwu0127 avatar Jun 13 '19 16:06 okechukwu0127

Same here... Help please

SamiChab avatar Mar 20 '20 13:03 SamiChab

I recommend checking out this library: https://github.com/IjzerenHein/react-native-shared-element

I also wrote a guide: https://gist.github.com/nandorojo/e84e938568a018e044aadae9d64456ec

nandorojo avatar Mar 20 '20 15:03 nandorojo

@nandorojo Thank you so much!! This library is also available for react-navigation v5: https://github.com/IjzerenHein/react-navigation-shared-element/blob/navigation-v5/README.md

SamiChab avatar Mar 20 '20 15:03 SamiChab

Yup! Also, if you are looking to use react native web with react navigation, check out my library expo-next-react-navigation

nandorojo avatar Mar 20 '20 16:03 nandorojo

I recommend checking out this library: https://github.com/IjzerenHein/react-native-shared-element

I also wrote a guide: https://gist.github.com/nandorojo/e84e938568a018e044aadae9d64456ec

This one is good. I also managed to get it working. I wasted a lot of time to make 'react-native-motion' work. But I couldn't. Thankfully I came by your comment. Thanks again.

2xSamurai avatar Apr 06 '20 12:04 2xSamurai

@2xSamurai Glad to hear it!

nandorojo avatar Apr 08 '20 22:04 nandorojo