获取react-native-community / netinfo错误

问题描述 投票:0回答:1

I am facing the issue "react-native-community/netinfo" while running my react-native project. I have reinstall this module but get the same error again. Before I run my application, I run Yarn and pod install, that run successfully, but after that it is showing this error that I have shown in the in this image. Please help me out to resolve this error to run my project

xcode react-native yarn pod
1个回答
0
投票

您的力矩模块有问题-而不是netinfo软件包。

读取错误-

找不到模块'moment'

SOLUTION

什么是moment

使用JavaScript解析,验证,操作和显示日期和时间。

  • 如果您使用npm,请运行此npm install moment --save

  • 如果使用纱线,请运行yarn add moment

  • 使用xode运行项目pod install clean您的项目,然后再次运行

© www.soinside.com 2019 - 2024. All rights reserved.