xref: /MusicFree/src/pages/musicDetail/components/bottom/index.tsx (revision c446f2b83c1bd26ef7ee96c37926a9cbde29bc16)
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';
7*c446f2b8S猫头猫import useOrientation from '@/hooks/useOrientation';
8bf6e62f2S猫头猫
94060c00aS猫头猫export default function Bottom() {
10*c446f2b8S猫头猫    const orientation = useOrientation();
11bf6e62f2S猫头猫    return (
12*c446f2b8S猫头猫        <View
13*c446f2b8S猫头猫            style={[
14*c446f2b8S猫头猫                style.wrapper,
15*c446f2b8S猫头猫                orientation === 'horizonal'
16*c446f2b8S猫头猫                    ? {
17*c446f2b8S猫头猫                          height: rpx(236),
18*c446f2b8S猫头猫                      }
19*c446f2b8S猫头猫                    : undefined,
20*c446f2b8S猫头猫            ]}>
214060c00aS猫头猫            <Opertions />
224060c00aS猫头猫            <SeekBar />
234060c00aS猫头猫            <PlayControl />
24bf6e62f2S猫头猫        </View>
25bf6e62f2S猫头猫    );
26bf6e62f2S猫头猫}
27bf6e62f2S猫头猫
28bf6e62f2S猫头猫const style = StyleSheet.create({
29bf6e62f2S猫头猫    wrapper: {
30bf6e62f2S猫头猫        width: rpx(750),
31bf6e62f2S猫头猫        height: rpx(320),
32bf6e62f2S猫头猫    },
33bf6e62f2S猫头猫});
34