Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(react-native-sdk): update readme file

Calin-Teodor158e1a56e5c0
diff --git a/react-native-sdk/README.md b/react-native-sdk/README.md
index d916364ed5..3ecdbb5ef2 100644
--- a/react-native-sdk/README.md
+++ b/react-native-sdk/README.md
@@ -6,13 +6,15 @@ Inside your project, run;
```console
npm i @jitsi/react-native-sdk
```
-<br/><br/>Additionally, if not already installed, some dependencies will need to be added.
+If there are conflicts, you can use ```--force```
+<br/>Additionally, if not already installed, some dependencies will need to be added.
This can be done by running the following script:
```console
node node_modules/@jitsi/react-native-sdk/update_dependencies.js
```
This will check and update all your dependencies.<br/><br/>
+After that you need to ```npm i```, if some dependency versions were updated.
[comment]: # (These deps definitely need to be added manually, more could be neccesary)
@@ -47,7 +49,7 @@ module.exports = (async () => {
})();
```
-### iOS
+## iOS
#### Project Info.plist
- Add a *Privacy - Camera Usage Description*
@@ -65,7 +67,7 @@ Run;
cd ios && pod install && cd ..
```
-### Android
+## Android
- In your build.gradle have at least `minSdkVersion = 24`
- In `android/app/src/debug/AndroidManifest.xml` and `android/app/src/main/AndroidManifest.xml`, under the `</application>` tag, include
@@ -73,26 +75,56 @@ cd ios && pod install && cd ..
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
```
-- In `android/app/src/main/AndroidManifest.xml`, under the `</application>` tag, include
+ ### Services
+ #### Screen share
+
+- Go to your `MainApplication.java` file and add:
+ 1. `import com.oney.WebRTCModule.WebRTCModuleOptions;` that comes from `react-native-webrtc` dependency.
+
+ 2. `WebRTCModuleOptions options = WebRTCModuleOptions.getInstance();` instance it.
+ 3. `options.enableMediaProjectionService = true;` enable foreground service that takes care of screen-sharing feature.
+
+- Go to your `android/app/src/main/AndroidManifest.xml`, under the `</application>` tag and include
```xml
- <service
- android:name="org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService"
- android:foregroundServiceType="mediaProjection" />
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
```
- This will take care of the screen share feature.
If you want to test all the steps before applying them to your app, you can check our React Native SDK sample app here:
https://github.com/jitsi/jitsi-meet-sdk-samples/tree/master/react-native
-### Using JWT tokens
+## Using JWT tokens
+- If you are planning to use tokens or another domain you can do that by updating the following props, as shown below.
+- For example:
+```javascript
+ <JitsiMeeting
+ room = { 'ThisIsNotATestRoomName' }
+ serverURL = { 'https://meet.jit.si/' }
+ token={ 'dkhalhfajhflahlfaahalhfahfsl' } />
+```
+
+## Using custom overflow menu buttons
- If you are planning to use tokens or another domain you can do that by updating the following props, as shown below.
- For example:
```javascript
<JitsiMeeting
- room={'ThisIsNotATestRoomName'}
- serverURL={'https://meet.jit.si/'}
- token={'dkhalhfajhflahlfaahalhfahfsl'} />
+ config = {{
+ customToolbarButtons: [
+ {
+ icon: "https://w7.pngwing.com/pngs/987/537/png-transparent-download-downloading-save-basic-user-interface-icon-thumbnail.png",
+ id: "btn1",
+ text: "Button one"
+ }, {
+ icon: "https://w7.pngwing.com/pngs/987/537/png-transparent-download-downloading-save-basic-user-interface-icon-thumbnail.png",
+ id: "btn2",
+ text: "Button two"
+ }
+ ]
+ }}
+ room = { 'ThisIsNotATestRoomName' }
+ serverURL = { 'https://meet.jit.si/' }
+ token = { 'dkhalhfajhflahlfaahalhfahfsl' } />
```
For more details on how you can use React Native SDK with React Native app, you can follow this link: