datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

DateTimePicker crashes on Expo IOS Snack/Appetize

Open YoussefHenna opened this issue 2 years ago • 2 comments

Bug report

Summary

DateTimePicker does not seem to work on Snack for IOS as of a couple of versions ago. The last working version on Snack was v6.3.5. Starting v6.4.0 and up, it does not seems to work crashing with the error: View config getter callback for component 'RNDateTimePicker' must be a function (received 'undefined')

Reproducible sample code

Reproduicable snack: https://snack.expo.dev/@youssefhenna/react-native-community-datetimepicker-ios-crash

Steps to reproduce

Run the snack on the IOS appetize

Environment info

Snack on Expo 47

datetimepicker version: 6.5.2

iOS / Android version: appetize

YoussefHenna avatar Apr 05 '23 18:04 YoussefHenna

It's probably caused by some change here: https://github.com/react-native-datetimepicker/datetimepicker/pull/657 where how the Native component is imported has changed. Seems to be problematic in Snack.

YoussefHenna avatar May 17 '23 16:05 YoussefHenna

@vonovak Any plans to look into this issue?

YoussefHenna avatar May 17 '23 17:05 YoussefHenna