react-native-video: [iOS] undefined is not an object (evaluating NativeModuels.UIManager.RCTVideo.Constants')
Getting this error when I navigate to a scene containing the Video component under ios.
However, this only happens when I started the simulator with react-native run-ios. If I run with Xcode, everything works fine.
react native version: react-native@0.25.1

About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 4
- Comments: 31 (2 by maintainers)
You can do it yourself 1.in the project navigator, right click Libraries, add RCTVideo.xcodeproj to your project 2.select your project,select Build Phases -> Link Binary With Libraries,add libRCTVideo.a 3. re-launching “react-native run-ios”
@nikhildaga sorry, others had commented that running ‘rnpm link react-native-video’ fixed the issue (or otherwise linking manually. Have you done this and are still having issues?
For me the following worked for me:
I solved it by installing react-native-video with pods :
pod 'react-native-video', path: '../node_modules/react-native-video'I am also facing this problem,and it still has not been resolved,has anybody can help me solve this issue?
For Android, this should work: https://github.com/react-native-community/react-native-video/issues/184#issuecomment-244913381
For iOS, close the packager, and then rerun the Xcode project.
Still having this issue. Also rnpm or manually linking didn’t work for me. React-Native: 0.29.2 Android: 6.0.2 @mattapperson can you please re-open this issue. thx
thanks everyone, this command worked: resolved re-launching “rnpm link react-native-video” command… i was having the same issue. you just saved me another few hours of banging my head against the wall
Same issue react-native 0.29 on iOs
EDIT: resolved re-launching “rnpm link react-native-video” command…