osdnk / react-native-reanimated-bottom-sheet

Highly configurable bottom sheet component made with react-native-reanimated and react-native-gesture-handler
MIT License
3.31k stars 326 forks source link

Cannot read property 'prototype' of undefined #398

Open rezamohdev opened 9 months ago

rezamohdev commented 9 months ago

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",
Frontend-dev-sarah commented 9 months ago

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

rezamohdev commented 9 months ago

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! :/

Frontend-dev-sarah commented 9 months ago

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.

rezamohdev commented 9 months ago

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

huhu1030 commented 8 months ago

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

ankitjpk2023 commented 7 months ago

Any further update on this topic!

Frontend-dev-sarah commented 7 months ago

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.

ankitjpk2023 commented 7 months ago

@rezamohdev How did you mange to solve this!

rezamohdev commented 7 months ago

@rezamohdev How did you mange to solve this!

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

demfabris commented 7 months ago

is this being maintained?

sonnt2510 commented 6 months ago

@demfabris sadly i believe is not

lukasz-szulborski commented 6 months ago

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

OzgunOzdemir commented 5 months ago

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

huhu1030 commented 5 months ago

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.

JaburBr commented 5 months ago

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

JaburBr commented 4 months ago

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

kilejiunderscorea commented 4 months ago

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