react-native-jitsi-meet: All Button Not Working in RN 0.64.0 Android

image

All button not working in Android but working in iOS.

I have followed below instruction, and got error in JitsiMeetView JitsiMeet.call(url, userInfo); crush Android App #251

Figured out the problem and right now it works for me in development and build release apk. Full diff of my changes you can find here.

  1. Follow installation guide from this repo README
  2. Downgrade @react-native-community/netinfoto 4.7.0
  3. Add next attributes (if not exist) to application tag in android/app/src/debug/AndroidManifest.xml
android:allowBackup="true" tools:replace="android:allowBackup"
  1. Add following attributes (if not exist) to application tag in android/app/src/main/AndroidManifest.xml
tools:replace="android:allowBackup"
  1. Add following attributes (if not exist) to manifest tag in android/app/src/main/AndroidManifest.xml
xmlns:tools="http://schemas.android.com/tools"
  1. Add “packagingOptions” to android/app/build.gradle
packagingOptions {
  exclude 'META-INF/react-native-webview_release.kotlin_module'
}
  1. Make sure that you did the last step from installation guide, and then, add “debugImplementation” in a similar way:
debugImplementation(project(':react-native-jitsi-meet')) {
  exclude group: 'com.facebook',module:'hermes'
}

My Dependencies

"dependencies": {
   "@react-navigation/native": "^5.9.3",
   "@react-navigation/stack": "^5.14.3",
   "react": "17.0.1",
   "react-native": "0.64.0",
  "react-native-gesture-handler": "^1.10.3",
   "react-native-jitsi-meet": "^2.1.1",
  "react-native-safe-area-context": "^3.2.0"
 }`

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 5
  • Comments: 53

Most upvoted comments

I solved this by adding this stub in react/index.native.js

import { UIManager } from 'react-native';

UIManager.playTouchSound = () => { }

The reason Touchables don’t work when the host app is running RN 0.64 or greater is because the playTouchSound method was removed in 0.64.

RN 0.64 is not supported by this package, you need to create a your own native module for this RN version using jitsi sdk, or you can use RN 0.63.4 with this package

@skrafft does your community have any plans to support RN 0.64?

@sairam-newzera many thanks! I can confirm that the link worked 🙇‍♂️

@hamzawaleed0102 I had to push it to Github, the project has been locked to private mode. https://github.com/dfabreguette-ap/jitsimeetsdk-3.10.0

I can confirm this solution works correctly, but you have to download it and use it locally. you can use this instead. in Android/build.gradle replace this: maven { // <---- Add this block url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases" } with this: maven { url "https://github.com/aligol20/jitsi-meet-fix-android-sdk/raw/master/releases" }

cd android & ./gradlew clean then run the app, and now buttons become normal!

I think there isn’t, unless you can upgrade either ReacNative or JitsiMeetSDK … I ran into this a few weeks ago, and I’m still stuck with it because of Expo compatibility issues with latests versions of RN.

@KolissnikBogdan @riyas145 I made it ! Rebuilding from source v3 with @rcidt monkey patch fixes the problem. I have other issues but I think this is due to my expo SDK upgrade to 44. So basically, here’s what I did :

@rcidt can you describe more? I can’t find react/index.native.js

JitsiMeetSDK: [features/app] Error(TypeError){“message”:"l.playTouchSound is not a function. facing this issue on clciking these butons