0.3.0 • Published 7 months ago
react-native-ninchat-demo-sdk v0.3.0
react-native-ninchat-demo-sdk
ninchat-demo-sdk
Installation
npm install react-native-ninchat-demo-sdk
peerDependencies
The library depends on react-native-webview
which is a native module. So, we have to include it in package.json.
Permission
Update AndroidManifest.xml:
Add the following permissions under the tag:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.MICROPHONE" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
iOS permission
- Update Project Info.plist:
<key>NSCameraUsageDescription</key>
<string>Cam</string>
<key>NSMicrophoneUsageDescription</key>
<string>Mic</string>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
<string>fetch</string>
<string>voip</string>
</array>
Usage
import {JitsiView} from 'react-native-ninchat-demo-sdk';
// ...
<SafeAreaView style={styles.container}>
<JitsiView />
</SafeAreaView>
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library