I have used this reference for installation https://github.com/blackuy/react-native-twilio-video-webrtc .It was successful and I was able to implement the features too. But I couldn't find any method "setScreenShareEnabled" in my TwilioVideo.android.js file which is in node_modules/react-native-twilio-video-webrtc/src.
I tried to implement that method manually. Like added
"onScreenShareChanged: PropTypes.func" in "propTypes"
Steps to reproduce
"onScreenShareChanged: PropTypes.func" in "propTypes"
"toggleScreenShare: 16" in nativeEvents
added method,
setScreenShareEnabled (enabled) { this.runCommand(nativeEvents.toggleScreenShare, [enabled]) }
"onScreenShareChanged" in buildNativeEventWrappers()
But the event onScreenShareChanged was not triggered on setting setScreenShareEnabled(true).
Environment
react-native-twilio-video-webrtc
Version: "react-native-twilio-video-webrtc": "github:blackuy/react-native-twilio-video-webrtc" npm: '8.11.0',