1import React from 'react'; 2import {StyleSheet, View} from 'react-native'; 3import rpx from '@/utils/rpx'; 4import SeekBar from './seekBar'; 5import PlayControl from './playControl'; 6import useOrientation from '@/hooks/useOrientation'; 7 8export default function Bottom() { 9 const orientation = useOrientation(); 10 return ( 11 <View 12 style={[ 13 style.wrapper, 14 orientation === 'horizonal' 15 ? { 16 height: rpx(156), 17 } 18 : undefined, 19 ]}> 20 <SeekBar /> 21 <PlayControl /> 22 </View> 23 ); 24} 25 26const style = StyleSheet.create({ 27 wrapper: { 28 width: '100%', 29 height: rpx(240), 30 }, 31}); 32