Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo Development client Ios build issue?

Invariant Violation: requireNativeComponent: "RNDateTimePicker" was not found in the UIManager.

this error shows in

  "react-native-modal-datetime-picker": "^17.0.0",

and used

 "@react-native-community/datetimepicker": "7.2.0",

Does anyone have a solution please give me

change the version because this is not work

like image 460
Sanket Savaliya Avatar asked Mar 10 '26 03:03

Sanket Savaliya


1 Answers

A few things you can try to resolve this...

  1. Delete node_modules and then run npm install or yarn depending on which you are using.
  2. Delete build cache by running npm start or yarn start followed by -- --reset-cache
  3. Make sure you are using a compatible/stable RN version. Versions beyond 0.60.0 use autolinking for Native Modules. If you have an older version you may need to link them manually before running your app.
  4. Also make sure to go into your iOS directory and run pod install. If you haven't done this your app will likely not build or run on iOS.
> cd ios
> pod install
> cd ..
> npm start

Ideally I'd recommend updating RN if you have less than 0.60.0 if you're able just because that is a rather old version and >0.60.0 contains a healthy amount of updates/fixes that could make your life easier haha.

like image 52
Matt Croak Avatar answered Mar 11 '26 16:03

Matt Croak