Authored by 孙凯

add video review by zhanglixia

  1 +import React from 'react';
  2 +import ReactNative from 'react-native';
  3 +
  4 +const {
  5 + Component,
  6 +} = React;
  7 +
  8 +const {
  9 + View,
  10 + PixelRatio,
  11 + Platform,
  12 + StyleSheet,
  13 +} = ReactNative;
  14 +
  15 +const YH_VideoView = ReactNative.requireNativeComponent('YH_VideoView', null);
  16 +
  17 +export default class YH_Video extends Component {
  18 +
  19 + constructor(props) {
  20 + super (props);
  21 + }
  22 +
  23 + render() {
  24 + return (
  25 + <YH_VideoView
  26 + style={this.props.style}
  27 + url = {this.props.url}
  28 + title = {this.props.title}
  29 + cover = {this.props.cover}
  30 + >
  31 + {this.props.children}
  32 + </YH_VideoView>
  33 + );
  34 + }
  35 +}