import React from 'react'; import {Image, StyleSheet, Text, TouchableOpacity, View} from 'react-native'; import {LoadedConfig} from '../../types'; export type LoadedViewProps = { config: LoadedConfig; onPlayPress: () => void; }; const LoadedView: React.FC = props => { const {config} = props; return ( {config?.cover ? ( ) : null} { props.onPlayPress(); }} activeOpacity={0.8}> 重新播放 ~ ); }; const styles = StyleSheet.create({ view: { height: '100%', width: '100%', justifyContent: 'center', alignItems: 'center', }, }); export default LoadedView;