react-native-ninchat-demo-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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

Package Sidebar

Install

npm i react-native-ninchat-demo-sdk

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

24.7 kB

Total Files

26

Last publish

Collaborators

  • pallab.gain