expo / snack

Expo Snack lets you run Expo in the browser.
https://snack.expo.dev
MIT License
370 stars 110 forks source link

@react-native-community/datetimepicker crashes on IOS #429

Closed YoussefHenna closed 1 year ago

YoussefHenna commented 1 year ago

Summary

Hey 👋, I'm working with the Draftbit team, and we recently ran into this issue.

The @react-native-community/datetimepicker library does not currently work on IOS with Snack. It crashes with the following red screen:

image

This started to occur as of v6.4.0 of @react-native-community/datetimepicker. I pinpointed the PR that broke it (this one), which adds Fabric support to the library.

I was not able to reproduce the issue when running an app locally, either through Expo and Expo Go or just a bare react-native app. It seems to be a snack-specific issue.

Thanks for taking the time to read this through, let me know if you need any more details.

What platform(s) does this occur on?

iOS

SDK Version

47

Reproducible demo or steps to reproduce from a blank project

This is a simple reproducible example on snack: https://snack.expo.dev/@youssefhenna/react-native-community-datetimepicker-ios-crash?platform=ios

You can see it will work on Android but crashes on IOS.