react-native-reanimated-bottom-sheet icon indicating copy to clipboard operation
react-native-reanimated-bottom-sheet copied to clipboard

Cannot read property 'prototype' of undefined

Open rezamohdev opened this issue 1 year ago • 18 comments

I am using the basic example of bottom-sheet but I got this error: Cannot read property 'prototype' of undefined

"reanimated-bottom-sheet": "^1.0.0-alpha.22"

"react-native": "0.72.4",
"react-native-gesture-handler": "^2.12.1",
"react-native-paper": "^5.10.4",
"react-native-reanimated": "^3.5.4",

rezamohdev avatar Sep 24 '23 13:09 rezamohdev

I got the same error after updatint to the latest version of expo 49.

Frontend-dev-sarah avatar Sep 25 '23 14:09 Frontend-dev-sarah

I got the same error after updatint to the latest version of expo 49.

I don't use expo workflow but I think the issue is going to be the same! I can't use even other bottom sheet libraries! :/

rezamohdev avatar Sep 25 '23 20:09 rezamohdev

I got the same error after updatint to the latest version of expo 49.

I don't use expo workflow but I think the issue is going to be the same! I can't use even other bottom sheet libraries! :/

Yes, the issue is the same, expo 49 using RN 0.72.4. This morning I finally solved this problem by using another bottom lib: https://gorhom.github.io/react-native-bottom-sheet.

Frontend-dev-sarah avatar Sep 26 '23 08:09 Frontend-dev-sarah

I am not that lucky, I have tried this before and even didn't get a solution 🫠, But thanks anyway

rezamohdev avatar Sep 29 '23 11:09 rezamohdev

I got the same error after updatint to the latest version of expo 49.

I don't use expo workflow but I think the issue is going to be the same! I can't use even other bottom sheet libraries! :/

Yes, the issue is the same, expo 49 using RN 0.72.4. This morning I finally solved this problem by using another bottom lib: https://gorhom.github.io/react-native-bottom-sheet.

Documentation says compatible with Reanimated V1 and V2, did It work with V3 ? @Frontend-dev-sarah

huhu1030 avatar Oct 14 '23 19:10 huhu1030

Any further update on this topic!

ankitjpk2023 avatar Nov 22 '23 10:11 ankitjpk2023

I got the same error after updatint to the latest version of expo 49.

I don't use expo workflow but I think the issue is going to be the same! I can't use even other bottom sheet libraries! :/

Yes, the issue is the same, expo 49 using RN 0.72.4. This morning I finally solved this problem by using another bottom lib: https://gorhom.github.io/react-native-bottom-sheet.

Documentation says compatible with Reanimated V1 and V2, did It work with V3 ? @Frontend-dev-sarah

My projet uses V3, yes it works with V3.

Frontend-dev-sarah avatar Nov 22 '23 10:11 Frontend-dev-sarah

@rezamohdev How did you mange to solve this!

ankitjpk2023 avatar Nov 27 '23 09:11 ankitjpk2023

@rezamohdev How did you mange to solve this!

I did not solve it yet and left my project did you solve it?

rezamohdev avatar Dec 04 '23 01:12 rezamohdev

is this being maintained?

demfabris avatar Dec 10 '23 21:12 demfabris

@demfabris sadly i believe is not

sonnt2510 avatar Jan 03 '24 15:01 sonnt2510

Same problem here after moving to reanimated 3.x and Expo 49. I think it's time to move on and try another library...

lukasz-szulborski avatar Jan 04 '24 10:01 lukasz-szulborski

Has anyone solved this problem ? Is the only solution to use another package ?

OzgunOzdemir avatar Jan 16 '24 12:01 OzgunOzdemir

Has anyone solved this problem ? Is the only solution to use another package ?

As mentioned by @Frontend-dev-sarah, you can use react-native-bottom-sheet it works with Expo 49 and Reanimated V3. Even though the documentation does not mention Reanimated V3.

huhu1030 avatar Jan 17 '24 09:01 huhu1030

Same error after moving to expo 49, has anyone else managed to solve this?

JaburBr avatar Feb 06 '24 22:02 JaburBr

Same error after moving to expo 49, has anyone else managed to solve this?

I've tried, but the only solution was migrate to https://www.npmjs.com/package/@gorhom/bottom-sheet

It worked fine with Expo 49 and Reanimated V3

JaburBr avatar Feb 09 '24 13:02 JaburBr

What is going on please, I can't even run the example code because of this error

kilejiunderscorea avatar Mar 07 '24 11:03 kilejiunderscorea

I am also unable to run the example code, I also get this error. Screenshot: Screenshot 2024-08-08 at 7 48 43 AM

compwron avatar Aug 08 '24 14:08 compwron