Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datetimepicker don't work on android #808

Closed
soto0 opened this issue Sep 5, 2023 · 30 comments
Closed

datetimepicker don't work on android #808

soto0 opened this issue Sep 5, 2023 · 30 comments

Comments

@soto0
Copy link

soto0 commented Sep 5, 2023

when i try to run my app on android i get this error:

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNCDatePicker' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes

@Nasseratic
Copy link
Collaborator

Which react native version you have?

@mitcharene
Copy link

mitcharene commented Sep 6, 2023

I'm having this issue as well. I have an Expo-managed project in which I generate a development build. The issue began showing up after I upgraded from expo SDK 48 to 49 and only affects the android build. IOS build appears to be unaffected

Error Message:

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNDatePicker' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes

Dependencies (from package.json)

"@react-native-community/datetimepicker": "7.2.0",
"expo": "^49.0.0",
"react": "18.2.0",
"react-native": "0.72.4",

@wadhwayy
Copy link

wadhwayy commented Sep 8, 2023

I'm having this issue as well. I have an Expo-managed project in which I generate a development build. The issue began showing up after I upgraded from expo SDK 48 to 49 and only affects the android build. IOS build appears to be unaffected

Error Message:

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNDatePicker' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes

Dependencies (from package.json)

"@react-native-community/datetimepicker": "7.2.0",
"expo": "^49.0.0",
"react": "18.2.0",
"react-native": "0.72.4",

Facing same issue any update how can we resolve this one?

@liao02x
Copy link

liao02x commented Sep 8, 2023

I had this issue upgrading from 47 to 48 using the global expo-cli with expo upgrade and then npx expo install --fix . I resolved the issue with npm install expo@^48.0.0 and then npx expo install --fix from their own migration guide. Hope this is helpful.

@jimmy123A
Copy link

Temporarily downgraded expo to 48 until the expo team fixes it on 49. Btw it's working fine on iOS, thats only Android related.

@vonovak
Copy link
Member

vonovak commented Sep 9, 2023

Hello and thanks for reporting,
I flagged this with the expo team.
Thank you 🙂

@Lakshya7312
Copy link

Lakshya7312 commented Sep 10, 2023

By when can we expect this to be patched up?
need a datetime picker for my project.

@PlamenPanayotov
Copy link

PlamenPanayotov commented Sep 11, 2023

I had this issue upgrading from 47 to 48 using the global expo-cli with expo upgrade and then npx expo install --fix . I resolved the issue with npm install expo@^48.0.0 and then npx expo install --fix from their own migration guide. Hope this is helpful.

@liao02x thank you so much! This solved my issue in v49

@AbdurRobTanvir
Copy link

I am also facing this issue but I am not using expo.

"@react-native-community/datetimepicker": "^7.5.0",
"react": "18.2.0",
"react-native": "0.72.4",

@jannesiera
Copy link

Running into the same issue. Can't downgrade Expo because we are using Expo Router v2.

@ah0y
Copy link

ah0y commented Sep 15, 2023

Running into the same issue. Can't downgrade Expo because we are using Expo Router v2.

try upgrading to 49.0.10. I think that fixed the issue for me

@komalparulekar
Copy link

I had this issue upgrading from 47 to 48 using the global expo-cli with expo upgrade and then npx expo install --fix . I resolved the issue with npm install expo@^48.0.0 and then npx expo install --fix from their own migration guide. Hope this is helpful.

@liao02x thank you so much! This solved my issue in v49

How did you manage to run the date picker in expo 49 ? Can you please share ?

@jannesiera
Copy link

jannesiera commented Sep 18, 2023

Running into the same issue. Can't downgrade Expo because we are using Expo Router v2.

try upgrading to 49.0.10. I think that fixed the issue for me

This doesn't work for me. Version 49.0.11 doesn't fix this either.

@Nasseratic
Copy link
Collaborator

@jannesiera are you using expo's development client or Expo Go?

@jannesiera
Copy link

jannesiera commented Sep 18, 2023 via email

@jareesh
Copy link

jareesh commented Sep 25, 2023

I'm using Expo Go. Janne Siera A software partner for your startup that you can trust. Website / https://sierasolutions.com Phone / +32 479 70 82 60 Email / @.***

On Mon, 18 Sept 2023 at 19:47, Nasser @.> wrote: @jannesiera https://github.com/jannesiera are you using expo's development client or Expo Go? — Reply to this email directly, view it on GitHub <#808 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC2QOQ52RCDHBQBORFYKP3X3CCJVANCNFSM6AAAAAA4LSGN3Q . You are receiving this because you were mentioned.Message ID: @. com>

After moving to "expo": "^49.0.11", the issue was resolved for me.
Did the following,

npm install expo@latest

npx expo install --fix

and then a "yarn start --clear" this may not be necessary.

@jannesiera
Copy link

I can confirm this works for us as well. Clearing the cache was definitely necessary. Thanks!

@renattomartins
Copy link

I am also facing this issue but I am not using expo.

"@react-native-community/datetimepicker": "^7.5.0",
"react": "18.2.0",
"react-native": "0.72.4",

Exactly! I'm also facing this issue and I'm not using expo. What can I do? @AbdurRobTanvir did you find a solution?

@AmmarM07
Copy link

I am also facing this issue but I am not using expo.

"@react-native-community/datetimepicker": "^7.5.0",
"react": "18.2.0",
"react-native": "0.72.4",

Exactly! I'm also facing this issue and I'm not using expo. What can I do? @AbdurRobTanvir did you find a solution?

I could workaround this issue by adding these two libraries to package.json:
"@react-native-community/datetimepicker": "^7.6.1,"
"react-native-modal-datetime-picker": "^17.1.0",

@shivakumarbdoddamani
Copy link

@AmmarM07 It's not working for me. Any alternative date picker with text input?

@shivakumarbdoddamani
Copy link

@AbdurRobTanvir Did you find any solution for the issue?

@edmbn
Copy link

edmbn commented Nov 29, 2023

I had the same issue and it's not an Expo problem. The problem is that after 7.2.0 at some point it is introduced a native module in the package but was not considered or documented as breaking change. I suspect it is the version v7.4.1 that introduces compatibility with Gradle 8. The big problem here is that everyone that had ^7.2.0 is installing all minor versions and we are introducing this breaking change. I solved immediately by setting in package.json "@react-native-community/datetimepicker": "7.2.0". Another option is to create another build, which will include the "new native module" and update in the stores if needed.

@shubhamzi
Copy link

getting same issue how can we tackle for this

@shubhamzi
Copy link

I am also facing this issue but I am not using expo.

"@react-native-community/datetimepicker": "^7.5.0",
"react": "18.2.0",
"react-native": "0.72.4",

Exactly! I'm also facing this issue and I'm not using expo. What can I do? @AbdurRobTanvir did you find a solution?

I could workaround this issue by adding these two libraries to package.json: "@react-native-community/datetimepicker": "^7.6.1," "react-native-modal-datetime-picker": "^17.1.0",

have you solve this

@mubashiralisiddiqui
Copy link

getting same error on android
not using expo

@LushawnDev
Copy link

I had the same issue and it's not an Expo problem. The problem is that after 7.2.0 at some point it is introduced a native module in the package but was not considered or documented as breaking change. I suspect it is the version v7.4.1 that introduces compatibility with Gradle 8. The big problem here is that everyone that had ^7.2.0 is installing all minor versions and we are introducing this breaking change. I solved immediately by setting in package.json "@react-native-community/datetimepicker": "7.2.0". Another option is to create another build, which will include the "new native module" and update in the stores if needed.

Downgrading to 7.2.0 worked for me.

I'm using Expo Go and was having problems on Android where with an older version (6.9) the datetimepicker wouldn't show up at all, then with the latest build I got the invariant violation error like others.

@alhockly
Copy link

Downgrading to "@react-native-community/datetimepicker": "7.2.0" in package.json fixed this for me using react-native CLI and gradle 8

Copy link

👋 @soto0, sorry you're having an issue. This issue is being closed because it does not provide all information required by the issue template. As the issue template explains, we require that you provide a runnable example that reproduces your issue and your environment information. This means you need to provide a code snippet that we can copy-paste into an empty project and see the error ourselves, or provide a git repository with the issue.
The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug.
Please create a new issue with this and we'll be happy to review it!

@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 2024
@react-native-datetimepicker react-native-datetimepicker unlocked this conversation Apr 25, 2024
@zahid502
Copy link

zahid502 commented May 2, 2024

facing same issue

@2O23
Copy link

2O23 commented May 15, 2024

still having the same issue ( without Expo )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests