diff --git a/front/Navigation.tsx b/front/Navigation.tsx index 14a9d5f..8b43e4d 100644 --- a/front/Navigation.tsx +++ b/front/Navigation.tsx @@ -41,7 +41,7 @@ const removeMe = () => ''; const protectedRoutes = () => ({ Home: { - component: HomeView, + component: DiscoveryView, options: { headerShown: false }, link: '/', }, diff --git a/front/components/Play/PartitionMagic.tsx b/front/components/Play/PartitionMagic.tsx index 2cec4a8..13d7867 100644 --- a/front/components/Play/PartitionMagic.tsx +++ b/front/components/Play/PartitionMagic.tsx @@ -151,11 +151,7 @@ const PartitionMagic = ({ songID, onEndReached, onError, onReady }: ParitionMagi {!isLoading && !isError && ( { - console.log('ready'); - console.log(partitionDims); - onReady(); - }} + onReady={onReady} style={{ aspectRatio: partitionDims[0] / partitionDims[1], }} diff --git a/front/components/Play/SvgContainer.tsx b/front/components/Play/SvgContainer.tsx index ba93816..89a29ed 100644 --- a/front/components/Play/SvgContainer.tsx +++ b/front/components/Play/SvgContainer.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { ViewStyle, ImageBackground, Platform } from 'react-native'; +import { ViewStyle, Image, Platform, StyleProp, ImageStyle } from 'react-native'; import { SvgCssUri } from 'react-native-svg/css'; type SvgContainerProps = { @@ -10,7 +10,9 @@ type SvgContainerProps = { export const SvgContainer = ({ url, onReady, style }: SvgContainerProps) => { if (Platform.OS === 'web') { - return ; + return ( + } /> + ); } return ( ({ }); const PlayView = ({ songId, route }: RouteProps) => { - songId = 4; const [type, setType] = useState<'practice' | 'normal'>(); const accessToken = useSelector((state: RootState) => state.user.accessToken); const navigation = useNavigation();