UNPKG

react-native-reanimated-player

Version:

A react-native video player that interacts like Youtube player, built upon Reanimted v2 & react-native-gesture-handle

26 lines 726 B
import React from 'react'; import { StyleSheet, View } from 'react-native'; import { Text } from './components'; import { palette } from './theme/palette'; export const VideoError = /*#__PURE__*/React.memo(function VideoError(_ref) { let { isError } = _ref; if (!isError) return null; return /*#__PURE__*/React.createElement(View, { style: errorStyle.container }, /*#__PURE__*/React.createElement(Text, { h5: true, color: palette.Danger(1), tx: "error" })); }); const errorStyle = StyleSheet.create({ container: { alignItems: 'center', backgroundColor: palette.G7(0.5), justifyContent: 'center', ...StyleSheet.absoluteFillObject } }); //# sourceMappingURL=video-error.js.map