Socket
Socket
Sign inDemoInstall

opentok-react-native

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opentok-react-native - npm Package Compare versions

Comparing version 0.6.5 to 0.7.0

ios/OpenTokReactNative.xcodeproj/project.pbxproj

2

package.json
{
"name": "opentok-react-native",
"version": "0.6.5",
"version": "0.7.0",
"description": "React Native components for OpenTok iOS and Android SDKs",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -37,3 +37,4 @@ # opentok-react-native

**Note** Please make sure to have [CocoaPods](https://cocoapods.org/) on your computer.
**Note:** Please make sure to have [CocoaPods](https://cocoapods.org/) on your computer.
If you've installed this package before, you may need to edit your `Podfile` and project structure because the installation process has changed.
1. In you terminal, change into your `ios` directory.

@@ -49,3 +50,2 @@

target '<YourProjectName>' do
use_frameworks!

@@ -60,28 +60,17 @@ # Pods for <YourProject>

5. Open XCode
5. After installing the iOS SDK, change into your root directory of your project.
6. Open `<YourProjectName>.xcworkspace` file in XCode. This file can be found in the `ios` folder of your React Native project.
6. Now run, `react-native link opentok-react-native`.
7. Click `File` and `Add Files to`
7. Open `<YourProjectName>.xcworkspace` file in XCode. This file can be found in the `ios` folder of your React Native project.
8. Add the following files from `../node_modules/opentok-react-native/ios` to the project:
* `OTPublisher.h`
* `OTPublisher.m`
* `OTPublisherManager.swift`
* `OTPublisherView.swift`
* `OTRN.swift`
* `OTScreenCapturer.swift`
* `OTSessionManager.m`
* `OTSessionManager.swift`
* `OTSubscriber.h`
* `OTSubscriber.m`
* `OTSubscriberManager.swift`
* `OTSubscriberView.swift`
7. Click `File` and `New File`
8. Add an empty swift file to your project:
* You can name this file anything i.e: `OTInstall.swift`. This is done to set some flags in XCode so the Swift code can be used.
9. Click `Create Bridging Header` when you're prompted with the following modal: `Would you like to configure an Objective-C bridging header?`
10. Add the contents from the `Bridging-Header.h` file in `../node_modules/opentok-react-native/ios` to `<YourProjectName>-Bridging-Header.h`
10. Ensure you have enabled both camera and microphone usage by adding the following entries to your `Info.plist` file:
11. Ensure you have enabled both camera and microphone usage by adding the following entries to your `Info.plist` file:
```

@@ -98,3 +87,4 @@ <key>NSCameraUsageDescription</key>

2. Run `react-native link opentok-react-native`
2. If you have already run `react-native link opentok-react-native` for the iOS installation, please skip this step.
* Run `react-native link opentok-react-native

@@ -101,0 +91,0 @@ 3. Open your Android project in Android Studio.

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc