如何让视频播放器在Expo上进行本机反应?

时间:2020-01-26 22:03:29

标签: react-native expo video-player

我一直在努力让Expo对本机视频播放器做出反应。 但是我总是会收到这个错误

TypeError: TypeError: (0, _netinfo.useNetInfo) is not a function. (In '(0, _netinfo.useNetInfo)()', '(0, _netinfo.useNetInfo)' is undefined)

我已经通过此链接安装了库https://github.com/ihmpavel/expo-video-player,并且安装了上述依赖项。 注意:在依赖项@ react-native-community / netinfo的安装过程中,收到以下警告:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

我需要您的帮助才能解决此问题,谢谢。

0 个答案:

没有答案