xref: /MusicFree/src/pages/musicDetail/components/bottom/index.tsx (revision 4245d81a9a741421473053d7d0f9fd4c9b4b444e)
1bf6e62f2S猫头猫import React from 'react';
24060c00aS猫头猫import {StyleSheet, View} from 'react-native';
3bf6e62f2S猫头猫import rpx from '@/utils/rpx';
4bf6e62f2S猫头猫import SeekBar from './seekBar';
5bf6e62f2S猫头猫import PlayControl from './playControl';
6bf6e62f2S猫头猫import Opertions from './operations';
7c446f2b8S猫头猫import useOrientation from '@/hooks/useOrientation';
8bf6e62f2S猫头猫
94060c00aS猫头猫export default function Bottom() {
10c446f2b8S猫头猫    const orientation = useOrientation();
11bf6e62f2S猫头猫    return (
12c446f2b8S猫头猫        <View
13c446f2b8S猫头猫            style={[
14c446f2b8S猫头猫                style.wrapper,
15c446f2b8S猫头猫                orientation === 'horizonal'
16c446f2b8S猫头猫                    ? {
17c446f2b8S猫头猫                          height: rpx(236),
18c446f2b8S猫头猫                      }
19c446f2b8S猫头猫                    : undefined,
20c446f2b8S猫头猫            ]}>
214060c00aS猫头猫            <Opertions />
224060c00aS猫头猫            <SeekBar />
234060c00aS猫头猫            <PlayControl />
24bf6e62f2S猫头猫        </View>
25bf6e62f2S猫头猫    );
26bf6e62f2S猫头猫}
27bf6e62f2S猫头猫
28bf6e62f2S猫头猫const style = StyleSheet.create({
29bf6e62f2S猫头猫    wrapper: {
30*4245d81aS猫头猫        width: '100%',
31bf6e62f2S猫头猫        height: rpx(320),
32bf6e62f2S猫头猫    },
33bf6e62f2S猫头猫});
34