import React, {useState} from 'react'; import {StyleSheet, View} from 'react-native'; import rpx from '@/utils/rpx'; import AlbumCover from './albumCover'; import Lyric from './lyric'; import {TapGestureHandler} from 'react-native-gesture-handler'; interface IContentProps {} export default function Content(props: IContentProps) { const [tab, selectTab] = useState<'album' | 'lyric'>('album'); const onPress = (evt: any) => { if (tab === 'album') { selectTab('lyric'); } else { selectTab('album'); } }; return ( {tab === 'album' ? : } ); } const style = StyleSheet.create({ wrapper: { width: rpx(750), flex: 1, justifyContent: 'center', alignItems: 'center', }, });