react-native-vops-bbb-sdk
v0.1.3
Published
bbb
Maintainers
Readme
react-native-vops-bbb-sdk
bbb
Installation with react native vops 0.73.6
npm install react-native-vops-bbb-sdkIf you can build file .tgz
- yarn install
- yarn prepare
- npm pack -> add file .tgz to folder libs in vops. run yarn add ./libs/name_file.tgz
Usage
//with Ios
In your Podfile file:
pod 'livekit-react-native', path: '../node_modules/@livekit/react-native'
pod 'livekit-react-native-webrtc', path: '../node_modules/@livekit/react-native-webrtc'
pod 'ReactNativeIncallManager', path: '../node_modules/react-native-incall-manager'
//with Android
In your settings.gradle file:
include ':livekit_react-native'
project(':livekit_react-native').projectDir = new File(rootProject.projectDir, '../node_modules/@livekit/react-native/android')
include ':livekit_react-native-webrtc'
project(':livekit_react-native-webrtc').projectDir = new File(rootProject.projectDir, '../node_modules/@livekit/react-native-webrtc/android')
include ':react-native-incall-manager'
project(':react-native-incall-manager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-incall-manager/android')
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
In your settings.gradle file:
dependencies {
...
implementation project(':livekit_react-native')
implementation project(':livekit_react-native-webrtc')
implementation project(':react-native-incall-manager')
implementation project(':react-native-vector-icons')
...
}
In your MainApplication.java file:
import com.livekit.reactnative.LiveKitReactNative;
import com.livekit.reactnative.audio.AudioType;
import com.zxcpoiu.incallmanager.InCallManagerPackage;
import com.livekit.reactnative.LivekitReactNativePackage;
import com.oney.WebRTCModule.WebRTCModulePackage;
...
List<ReactPackage> packages = new PackageList(this).getPackages();
packages.add(new RNCViewPagerPackage());
packages.add(new SSLPinningPackage());
packages.add(new InCallManagerPackage());
packages.add(new LivekitReactNativePackage());
packages.add(new WebRTCModulePackage());
...
public void onCreate() {
// Place this above any other RN related initialization
// When AudioType is omitted, it'll default to CommunicationAudioType.
// Use MediaAudioType if user is only consuming audio, and not publishing.
LiveKitReactNative.setup(this, new AudioType.CommunicationAudioType());
//...
}
// ...
Contributing
License
MIT
Made with create-react-native-library
