[英]how to install react-native-video on windows app?
for a certain windows app I am trying to install the react-native-video package on the solution project.对于某个 windows 应用程序,我正在尝试在解决方案项目上安装 react-native-video package。 I found the following procedure:我找到了以下程序:
the image taken from the link: https://www.npmjs.com/package/react-native-video从链接获取的图像:https://www.npmjs.com/package/react-native-video
but at the step " Add #include "winrt/ReactNativeVideoCPP.h"."但在步骤“添加#include”winrt/ReactNativeVideoCPP.h“。” I'm getting an error: "cannot find the source code "ReactNativeVideoCPP.h"我收到一个错误:“找不到源代码“ReactNativeVideoCPP.h”
what could be the problem?可能是什么问题呢?
I had the same error, because I assumed the include statement within pch.h should be in the same style as the others eg我遇到了同样的错误,因为我假设 pch.h 中的 include 语句应该与其他语句的样式相同,例如
#include <winrt/ReactNativeVideoCPP.h>
But if I followed the install instructions exactly, such as:但是,如果我完全按照安装说明进行操作,例如:
#include "winrt/ReactNativeVideoCPP.h"
This worked for me, as long as you follow the other install steps exactly.只要您完全遵循其他安装步骤,这对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.