import React from 'react'; import LinearGradient from 'react-native-linear-gradient'; import Video from 'react-native-video'; import { PixelRatio, StyleSheet, View, Image } from 'react-native'; import type { BackgroundType } from '../../types'; import { stylesUtils } from '../../utils'; interface StoryBackgroundProps { background: BackgroundType; } const StoryBackground: React.FC = (props) => { const { background } = props; if (background.type === 'gradient') { return ; } if (background.type === 'video') { return (