react-native-theoplayer
Version:
A THEOplayer video component for react-native.
27 lines (26 loc) • 604 B
JavaScript
;
import React from 'react';
import { Image, StyleSheet, View } from 'react-native';
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
export const Poster = props => {
const {
uri
} = props;
if (!uri) {
return /*#__PURE__*/_jsx(_Fragment, {});
}
return /*#__PURE__*/_jsx(View, {
style: [StyleSheet.absoluteFill, {
justifyContent: 'center'
}],
children: /*#__PURE__*/_jsx(Image, {
style: [{
aspectRatio: 16 / 9
}, props.style],
source: {
uri
}
})
});
};
//# sourceMappingURL=Poster.js.map