Skip to content

react-native can't read property showVideoPlayer of undefined #22

@peterWilson34

Description

@peterWilson34

when I call it like stated in docs :

var VideoPlayer = require('react-native-native-video-player');

/**
* The method will launch native module
* @param {String} url Video link
*/
VideoPlayer.showVideoPlayer(url);

I got this error

react-native can't read property showVideoPlayer of undefined

when I run console.log(VideoPlayer) just before I call showVideoPlayer the log show the object and the method showVideoPlayer defined inside it

any help will be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions