react-native-webview-video
Version:
react-native-webview-video is a React Native library that provides a Video component that renders media content such as videos with custom controls for react-native and react-native-web. Support Youtube and Vimeo.
20 lines (17 loc) • 762 B
JavaScript
import { Component } from 'react';
import Svg, { Path } from 'react-native-svg';
export default class PlaySVG extends Component {
constructor(props) {
super(props);
}
render() {
let origin_width = 512;
let origin_height = 512;
let height = typeof this.props.width != "undefined" ? (this.props.width * origin_height) / origin_width : 0;
return (
<Svg fill={this.props.color} width={this.props.width} height={height} viewBox="0 0 512 512">
<Path d="M133 440a35.37 35.37 0 01-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0135.77.45l247.85 148.36a36 36 0 010 61l-247.89 148.4A35.5 35.5 0 01133 440z" />
</Svg>
);
}
}