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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import error (demo code)

antoinemacia opened this issue · comments

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):

  • OS: [Android or iOS]: Expo web (is it not meant to work on web maybe?)
  • React Native version - 0.73.2
  • react-native-date-picker version - 4.3.6

Web is not supported unfortunately.

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?