English 中文(简体)
客户 Ios Building issue?
原标题:Expo Development client Ios build issue?

Invariant Violation: requiresNativeComponent: “RNDatetimePicker” is not found in the UIManager.

这一错误显示:

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

所用

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

是否有解决办法?

修改案文,因为这不是工作

问题回答

你们可以尝试解决这些事情......

  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

理想的情况是,I d建议如果低于<条码>0.60.0<>/条码>,则更新国家数据。 如果你仅仅因为这是一个相当老的版本,>0.60.0<>/code>含有一个健康的更新/固定内容,使你的生活更加方便。

当时我与这一问题进行了战斗。 但我定下了以下步骤。 注

React Native version: 0.72.6 Expo version: 49.0.15 dateTimePicker version: 7.2.0

  1. npx expo install @react-native-community/datetimepicker
  2. cd ios
  3. npx pod-install

现在,我进口这套材料,就像它所做的那样:

import DateTimePicker from "@react-native-community/datetimepicker";

对于我来说,它需要像现在这样使用,这并不是说什么。

<DateTimePicker mode="date" value={date} />

日期由违约国确定如下:

const [date, setDate] = useState(new Date());

我知道你正在使用一揽子模式,但这取决于社区选择者,希望在你的情况下这样做!





相关问题
How to use one react app into another react app?

I have two react apps, parent app and child app. and child app have an hash router. I have build the child app using npm run build, It creates build folder. That build folder moved into inside the ...

how to get selected value in Ant Design

I want to print the selected value, and below is my option list: const vesselName = [ { value: 0 , label: ALBIDDA , }, { value: 1 , label: ALRUMEILA , }, { value: 2 ,...

How to add a <br> tag in reactjs between two strings?

I am using react. I want to add a line break <br> between strings No results and Please try another search term. . I have tried No results.<br>Please try another search term. but ...