From 9064a376c555617cb69d78ef516f6978282b69b5 Mon Sep 17 00:00:00 2001 From: Emre Date: Wed, 8 Mar 2023 07:05:22 +0100 Subject: [PATCH 1/7] Just more responsive --- src/FLAD/components/AdjustSize.tsx | 0 src/FLAD/components/Card.tsx | 6 +++--- src/FLAD/navigation/AuthNavigation.tsx | 12 ++---------- src/FLAD/navigation/Navigation.tsx | 3 --- src/FLAD/screens/MusicDetail.tsx | 18 +++++++++--------- src/FLAD/screens/spot.tsx | 10 +++++----- 6 files changed, 19 insertions(+), 30 deletions(-) create mode 100644 src/FLAD/components/AdjustSize.tsx diff --git a/src/FLAD/components/AdjustSize.tsx b/src/FLAD/components/AdjustSize.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/FLAD/components/Card.tsx b/src/FLAD/components/Card.tsx index 920a44f..3b8479d 100644 --- a/src/FLAD/components/Card.tsx +++ b/src/FLAD/components/Card.tsx @@ -1,7 +1,7 @@ import { View, Image , Dimensions, StyleSheet } from 'react-native' import React from 'react' import Animated,{ Extrapolate, interpolate, runOnJS, useAnimatedGestureHandler, useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated'; - +import normalize from '../components/Normalize'; import { PanGestureHandler, PanGestureHandlerGestureEvent } from 'react-native-gesture-handler'; const SCREEN_WIDTH = Dimensions.get('window').width @@ -246,8 +246,8 @@ const styles = StyleSheet.create({ image : { borderRadius : 24, resizeMode: 'stretch', - height: 362, - width: 362, + height: normalize(420), + width: normalize(420), }, container: { flex: 1, diff --git a/src/FLAD/navigation/AuthNavigation.tsx b/src/FLAD/navigation/AuthNavigation.tsx index daf8c95..c0982ab 100644 --- a/src/FLAD/navigation/AuthNavigation.tsx +++ b/src/FLAD/navigation/AuthNavigation.tsx @@ -38,24 +38,16 @@ export default function AuthNavigation() { }, [appIsReady]); if (appIsReady == false) { - console.log(appIsReady, "T9 AuthNav") return null; } - console.log(appIsReady, "k9 AuthNav") - // console.log(userToken, "k9 AuthNav") return ( - <> + {isLogin ? ( /* {userToken != null ? ( */ - - - ) : - - } - + ) } diff --git a/src/FLAD/navigation/Navigation.tsx b/src/FLAD/navigation/Navigation.tsx index eba9bb6..05fa63d 100644 --- a/src/FLAD/navigation/Navigation.tsx +++ b/src/FLAD/navigation/Navigation.tsx @@ -41,7 +41,6 @@ export default function Navigation() { { style={[ { - width: 370, - height: 370, + width: normalize(429), + height: normalize(429), borderRadius : 24, resizeMode: 'stretch', },styleAniamatedImage @@ -242,11 +243,10 @@ const MusicDetail = ({ route }) => { ]} />