Closed malas123 closed 3 months ago
Got the same issue as well
Same issue, any fixes?
Hello and thanks for reporting, the plugin files are present in version 8.2.0, as you can see here https://www.npmjs.com/package/@react-native-community/datetimepicker?activeTab=code
You need to install this version (or newer) and then run npx expo prebuild
in order to apply the color settings.
Thank you š
Bug report
Summary
I need to style datetime component in react native. I am using Expo. The datetimepicker library is installed via command:
npx expo install u/react-native-community/datetimepicker
According to this document styling of the datetime component is possible through plugins object of app.json document. However, I get following error:
"Package "@react-native-community/datetimepicker" does not contain a valid config plugin.
Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin
Cannot use import statement outside a module"
I think the issue is missing plugin files in npm package
Reproducible sample code
Steps to reproduce
npx expo prebuild -p android --clean
Describe what you expected to happen:
Environment info
Expo version: 0.18.14
npx react-native info
output: