react-native-native-video-player icon indicating copy to clipboard operation
react-native-native-video-player copied to clipboard

react-native can't read property showVideoPlayer of undefined

Open peterWilson34 opened this issue 6 years ago • 4 comments

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.

peterWilson34 avatar May 10 '18 12:05 peterWilson34

I have the same issue, any solutions?

sebastianpantin avatar Jul 04 '18 15:07 sebastianpantin

Hi @peterWilson34 ,

Which platform are you running on? If it's Android, please check if you already include all required packages, Or if it's IOS, check that you already config as the Guideline in ReadMe.

Thanks.

BondGoat avatar Sep 05 '18 04:09 BondGoat

Check if you linked the library correctly using react-native link react-native-native-video-player or manually.

chengsam avatar Nov 29 '18 03:11 chengsam

I have Follow step but not working in ios Please Give me Solution in react-native 60.3

$(SRCROOT)/../../../ios/Videoex

sutharmaulik avatar Sep 27 '19 06:09 sutharmaulik