react-native-videoplayer icon indicating copy to clipboard operation
react-native-videoplayer copied to clipboard

Get a warning message

Open liusy708 opened this issue 9 years ago • 1 comments

I installed this component and configured as the README doc, but when I run my project in Xcode, I got this warning:

[tid:com.facebook.React.JavaScript] Warning: Native component for "VideoPlayerView" does not exist 2016-04-18 23:21:50.570 [info][tid:com.facebook.React.JavaScript] Running application "AwesomeProject" with appParams: {"rootTag":1,"initialProps":{}}. DEV === true, development-level warning are ON, performance optimizations are OFF

This is my index.ios.js file:

'use strict';

import React, {
  AppRegistry,
  Component,
  Image,
  ListView,
  StyleSheet,
  Text,
  View,
} from 'react-native';

var VideoPlayer = require('react-native-videoplayer');

class AwesomeProject extends Component {
  render() {
    return (
      <View style={styles.container}>
        <VideoPlayer style={styles.video} url="broadchurch.mp4" />
        <Text style={styles.instructions}>
          Shake or press menu button for dev menu
        </Text>
      </View>
    );
  }
}

var styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center'
  },
  video: {
    position: 'absolute',
    top: 0, left: 0, right: 0, bottom: 0,
    alignItems: 'center',
    justifyContent: 'center',
    backgroundColor: 'transparent'
  }
});

AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);

liusy708 avatar Apr 18 '16 15:04 liusy708

Same issue here. Also seems to affect rnpm.

michaeljgilmore avatar Apr 30 '16 13:04 michaeljgilmore