|
|
import React from 'react';
|
|
|
import ReactNative from 'react-native';
|
|
|
|
|
|
const {
|
|
|
Component,
|
|
|
} = React;
|
|
|
|
|
|
const {
|
|
|
View,
|
|
|
PixelRatio,
|
|
|
Platform,
|
|
|
StyleSheet,
|
|
|
} = ReactNative;
|
|
|
|
|
|
const YH_VideoView = ReactNative.requireNativeComponent('YH_VideoView', null);
|
|
|
|
|
|
export default class YH_Video extends Component {
|
|
|
|
|
|
constructor(props) {
|
|
|
super (props);
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
return (
|
|
|
<YH_VideoView
|
|
|
style={this.props.style}
|
|
|
url = {this.props.url}
|
|
|
title = {this.props.title}
|
|
|
cover = {this.props.cover}
|
|
|
>
|
|
|
{this.props.children}
|
|
|
</YH_VideoView>
|
|
|
);
|
|
|
}
|
|
|
} |
...
|
...
|
|