Open EnricoNapolitan opened 3 years ago
I am experiencing the same issue as well in reanimated 2.0.0-rc.0.
Standalone gallery crashes using rc.1
Hi there, sorry for the long reply. I haven't updated all the components to be working properly with the latest reanimated, I have plans to update to the latest reanimated as well as fixing all the bugs and releasing documentation and lightbox component in the near future.
Thank you for taking an interest in this project and stay tuned for the updates in the next week!
I've just upgraded the version of Reanimated to the latest one. I'm going to work on some of the bugs in this and the next week. Hope to get stable v1 in few weeks.
I will appreciate any bug reports and help.
Let me know how the latest master works for you.
when i try to render a StandaloneGallery it throws this error:
TypeError: undefined is not a function (near '...(0, _reactNativeReanimated.useMapper)...')
This error is located at:
in Unknown (created by ImageRenderer)
in ImageRenderer
in RCTView (at View.js:34)
in View
in RCTView (at View.js:34)
in View
in Unknown (created by Pager)
in RCTView (at View.js:34)
in View (at createAnimatedComponent.js:444)
in AnimatedComponent(View) (at createAnimatedComponent.js:455)
in ForwardRef(AnimatedComponentWrapper) (created by Pager)
in RCTView (at View.js:34)
in View (at createAnimatedComponent.js:444)
in AnimatedComponent(View) (at createAnimatedComponent.js:455)
in ForwardRef(AnimatedComponentWrapper) (created by Pager)
in RCTView (at View.js:34)
in View (at createAnimatedComponent.js:444)
in AnimatedComponent(View) (at createAnimatedComponent.js:455)
in ForwardRef(AnimatedComponentWrapper) (created by TapGestureHandler)
in TapGestureHandler (created by Pager)
in RCTView (at View.js:34)
in View (at createAnimatedComponent.js:444)
in AnimatedComponent(View) (at createAnimatedComponent.js:455)
in ForwardRef(AnimatedComponentWrapper) (created by PanGestureHandler)
in PanGestureHandler (created by Pager)
in RCTView (at View.js:34)
in View (at createAnimatedComponent.js:444)
in AnimatedComponent(View) (at createAnimatedComponent.js:455)
in ForwardRef(AnimatedComponentWrapper) (created by Pager)
in RCTView (at View.js:34)
in View (created by Pager)
in Pager
My code for this test:
<StandaloneGallery
items={[
{
id: '1',
width: 300,
height: 300,
uri: 'https://placekitten.com/300/300',
},
{
id: '2',
width: 400,
height: 200,
uri: 'https://placekitten.com/400/200',
},
]}
/>
New package.json after the update:
"react-native-gallery-toolkit": "^1.0.0-alpha.1.2",
"react-native-reanimated": "^2.1.0"
Maybe this can be useful: With the same condition of the previous message I receive this error (the location is more precise):
TypeError: undefined is not a function (near '...(0, _reactNativeReanimated.useMapper)...')
This error is located at:
in ImageTransformer (at StandaloneGallery.tsx:107)
in ImageRenderer (at StandaloneGallery.tsx:237)
in RCTView (at View.js:34)
and when I go to that line I see this in my editor (Visual Studio Code):
When:
onTap
andswipe
for change image in StandaloneGallery It has been stopped working when I updated from"react-native-reanimated": "^2.0.0-alpha.7"
to"^2.0.0-rc.0"
Info:
iPhone 11 emulator ios 14.2 package.json:
Full stack error from the app:
Thank you in advance! :)