physera / react-native-twilio-video-android

Twilio Video for RN on Android
3 stars 1 forks source link

Getting undefined is not a function #1

Open rajesh1158 opened 7 years ago

rajesh1158 commented 7 years ago

Hi. I copied this whole repo into node_modules/react-native-twilio-video-android folder in my react native app. I copied the contents of https://github.com/blackuy/react-native-twilio-video-webrtc/blob/master/Example/index.ios.js to one of js files, and then updated the component names to the ones from your repo. I also added react-native-twilio-video-android to my project's package.json. When the screen is loaded, and connect button is clicked, I get an error: undefined is not a function (evaluating _this.refs.twilioVideo.connect({ roomName: _this.state.roomName, accessToken: _this.state.token }). I spent a few hours trying to fix this but could not. What could be wrong in my setup? Can you please guide me?

slycoder commented 7 years ago

Hi, react-native-twilio-video-webrtc just recently changed their interface and I haven't had a chance to update the interface here to match.

Hang tight, later today I'm going to integrate this into react-native-twilio-video-webrtc directly (so that you don't have to download this package separately and the interfaces should match)

rajesh1158 commented 7 years ago

Oh wow! That is great! Great work @slycoder. I'll wait for the update then. TIA.

slycoder commented 7 years ago

FYI I've started work here: https://github.com/blackuy/react-native-twilio-video-webrtc/pull/15