react-native - React Native - 找不到名称为“focus”的命令
问题描述
我在我的 Xcode 中运行 react-native 应用程序,它可以构建成功,但是当我单击登录页面的 Textinput 时,它抛出了一个错误:
No command found with name "focus"
-[RCTUIManager dispatchViewManagerCommand:commandID:commandArgs:]
RCTUIManager.m:1115
__invoking___
-[NSInvocation invoke]
-[NSInvocation invokeWithTarget:]
-[RCTModuleMethod invokeWithBridge:module:arguments:]
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread
我搜索了所有问题,但没有一个可以解决这个问题。这个错误的原因是什么?
解决方案
推荐阅读
- select - ORA-19011 在 oracle 中选择
- reactjs - 用于 Web 项目的 React-navigation + react-native-web,如何使用 url 导航到正确的屏幕
- r - 在 S3 类的情况下如何处理更多参数?
- python - 如何使用多种模型组合使用 GridSearchCV scikit-learn VotingRegressor?
- python - 计算多个 numpy 数组的函数的行为变化意味着
- jenkins - 无法使用 Jenkins 在 docker 中构建 .net 核心应用程序?
- php - 随处删除产品添加到购物车按钮
- python - 在 Python 中设置进程的时间
- android - 仅在数据更改时调用 LiveData.observe() 回调并忽略控制器的生命周期更改(活动/片段)
- javascript - 返回相反结果的子字符串