New to react-native. Serving data via internal API. I'm attempting to render videos in the app. To do this, it seems that most people either use react-native-video (which is what I'm currently trying to do) or use the built-in WebView component.
I'm having trouble getting access to the component. I installed react-native-video and linked it via rnpm per the setup instructions. I included it in the project like several other apps I found that were using it did:
import Video from 'react-native-video'; When I try to use
<Video source={{uri: video.url}} /> I have seen a couple different errors in the iOS simulator, but currently seeing Cannot read property 'Constants' of undefined. When I remove the <Video /> tag I don't get the error. Haven't been able to figure out what I'm doing wrong in terms of setup. So my questions are essentially (1) is this even how I should be trying to include video with react-native and (2) assuming that it is, what am I doing wrong.
Please let me know if additional information is needed. Very new to react-native.
UPDATE: solved error by uninstalling and reinstalling.