我是新来的本地和npm的反应 . 我想为我的iPhone安装一个演示来试用WebRTC . 我想安装这个:https://github.com/oney/RCTWebRTCDemo
但是,我对设置的步骤非常困惑,我期望的是执行以下步骤,但似乎没有用 .
-
react-native init RCTWebRTCDemo --version 0.29.0
-
npm install https://github.com/oney/RCTWebRTCDemo.git
-
npm开始
-
将iPhone设备连接到Mac
-
打开iOS文件夹/ RCTWebRTCDemo.xcodeproj
-
运行并构建Xcode
你能帮忙解决一下正确的步骤吗?非常感谢 .
1 回答
首先,确保您已
npm install -g react-native-cli
安装了 React Native CLI .然后做以下事项:
git clone https://github.com/oney/RCTWebRTCDemo.git
cd RCTWebRTCDemo
npm install
react-native run-ios
或react-native run-android