henninghall / react-native-date-picker

React Native Date Picker is datetime picker for Android and iOS. It includes date, time and datetime picker modes. The datepicker is customizable and is supporting different languages. It's written with native code to achieve the best possible look, feel and performance.
MIT License
2.21k stars 338 forks source link

Import error (demo code) #764

Closed antoinemacia closed 7 months ago

antoinemacia commented 7 months ago

Hello!

Im simply following your modal example on expo web after installation but getting the following error

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: : <Text />. Did you accidentally export a JSX literal instead of a component?

Check the render method of `DatePickerWrapper`.

Smartphone (please complete the following information):

henninghall commented 7 months ago

Web is not supported unfortunately.

syirilrakhulh commented 6 months ago

So it's meaning when we run dev on web (but we only release on ios and android) we need to add condition to not render on web?

henninghall commented 6 months ago

Yes