react-native-date-picker icon indicating copy to clipboard operation
react-native-date-picker copied to clipboard

Plugin crashes an EAS Preview Build but works on development build

Open pushparajsamant opened this issue 2 years ago • 2 comments

Describe the bug When built with eas development profile, the plugin runs well but when built with eas preview it fails to find the DatePicker element and crashes the app. Gives the following error

**Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

Expected behavior It should be able to access the DatePicker in the eas preview build

To Reproduce eas build --platform android --local --profile preview

Install the app on device and try to access the page with the datepicker

My date picker code <DatePicker modal date={dob} open={showDatePicker} mode="date" onConfirm={handleConfirm} onCancel={hideDatePicker} />


**Smartphone (please complete the following information):**
 - OS: Both Android and iOS
 - React Native version 0.68.2
 - react-native-date-picker version 4.2.2

pushparajsamant avatar Jun 21 '22 23:06 pushparajsamant

Possible Solution https://github.com/henninghall/react-native-date-picker/pull/532

pushparajsamant avatar Jun 22 '22 05:06 pushparajsamant

same issue + 1

IngyuTae avatar Oct 23 '22 00:10 IngyuTae