Open gheorghe96 opened 3 years ago
Do you have a little more code you could share? It's hard to identify the problem just from the snippet you've provided.
I am also having the same TypeError: undefined is not a function(near '...twilioRef.current.connect...'). Does any one found any solution?
Steps to reproduce
constructor(props) { super(props); this.twilioRef = React.createRef(); }
<TwilioVideo ref={this.twilioRef} onRoomDidConnect={ this._onRoomDidConnect } onRoomDidDisconnect={ this._onRoomDidDisconnect } onRoomDidFailToConnect= { this._onRoomDidFailToConnect } onParticipantAddedVideoTrack={ this._onParticipantAddedVideoTrack } onParticipantRemovedVideoTrack= { this._onParticipantRemovedVideoTrack }/>
then in other method when call:
this.twilioRef.current.connect({ roomName: 'testRoom', accessToken: token });
get this:
Environment
react-native-twilio-video-webrtc
"react-native-twilio-video-webrtc": "git+https://github.com/blackuy/react-native-twilio-video-webrtc.git",