Skip to content

Getting undefined is not a function #1

Description

@rajesh1158

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions