Just more responsive
continuous-integration/drone/push Build is passing Details

pull/13/head
Emre KARTAL 2 years ago
parent 37800e2daf
commit 9064a376c5

@ -1,7 +1,7 @@
import { View, Image , Dimensions, StyleSheet } from 'react-native' import { View, Image , Dimensions, StyleSheet } from 'react-native'
import React from 'react' import React from 'react'
import Animated,{ Extrapolate, interpolate, runOnJS, useAnimatedGestureHandler, useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated'; 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'; import { PanGestureHandler, PanGestureHandlerGestureEvent } from 'react-native-gesture-handler';
const SCREEN_WIDTH = Dimensions.get('window').width const SCREEN_WIDTH = Dimensions.get('window').width
@ -246,8 +246,8 @@ const styles = StyleSheet.create({
image : { image : {
borderRadius : 24, borderRadius : 24,
resizeMode: 'stretch', resizeMode: 'stretch',
height: 362, height: normalize(420),
width: 362, width: normalize(420),
}, },
container: { container: {
flex: 1, flex: 1,

@ -38,24 +38,16 @@ export default function AuthNavigation() {
}, [appIsReady]); }, [appIsReady]);
if (appIsReady == false) { if (appIsReady == false) {
console.log(appIsReady, "T9 AuthNav")
return null; return null;
} }
console.log(appIsReady, "k9 AuthNav")
// console.log(userToken, "k9 AuthNav")
return ( return (
<> <SafeAreaProvider>
{isLogin ? ( {isLogin ? (
/* {userToken != null ? ( */ /* {userToken != null ? ( */
<SafeAreaProvider>
<Navigation/> <Navigation/>
</SafeAreaProvider>
) : ) :
<SafeAreaProvider >
<StartNavigation/> <StartNavigation/>
</SafeAreaProvider>
} }
</> </SafeAreaProvider>
) )
} }

@ -41,7 +41,6 @@ export default function Navigation() {
<BottomTabNavigator.Navigator <BottomTabNavigator.Navigator
initialRouteName="Spots" initialRouteName="Spots"
screenOptions={{ screenOptions={{
//tabBarShowLabel: false, //to remove the titles under the icons
tabBarStyle: styles.tabBar, tabBarStyle: styles.tabBar,
...(Platform.OS === 'android' ...(Platform.OS === 'android'
? { tabBarLabelStyle: { bottom: normalize(10) } } ? { tabBarLabelStyle: { bottom: normalize(10) } }
@ -56,8 +55,6 @@ export default function Navigation() {
}}/> }}/>
<BottomTabNavigator.Screen name="Favorites" component={FavoriteNavigation} <BottomTabNavigator.Screen name="Favorites" component={FavoriteNavigation}
options={{ options={{
// use Selector state redux badgeCount ? badgeCount : undefined
tabBarBadge : favoritesMusicLength, tabBarBadge : favoritesMusicLength,
tabBarBadgeStyle : {backgroundColor : 'yellow'}, tabBarBadgeStyle : {backgroundColor : 'yellow'},
headerShown: false, headerShown: false,

@ -7,6 +7,7 @@ import axios from "axios";
import { Buffer } from 'buffer'; import { Buffer } from 'buffer';
import { Audio } from 'expo-av'; import { Audio } from 'expo-av';
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import normalize from '../components/Normalize';
import { State, TapGestureHandler } from "react-native-gesture-handler"; import { State, TapGestureHandler } from "react-native-gesture-handler";
import { RequestHandler } from "../services/spotify/spotifyRequestHandler/utils"; import { RequestHandler } from "../services/spotify/spotifyRequestHandler/utils";
import { FetchRequest } from "expo-auth-session/build/Fetch"; import { FetchRequest } from "expo-auth-session/build/Fetch";
@ -233,8 +234,8 @@ const MusicDetail = ({ route }) => {
style={[ style={[
{ {
width: 370, width: normalize(429),
height: 370, height: normalize(429),
borderRadius : 24, borderRadius : 24,
resizeMode: 'stretch', resizeMode: 'stretch',
},styleAniamatedImage },styleAniamatedImage
@ -242,11 +243,10 @@ const MusicDetail = ({ route }) => {
]} ]}
/> />
<Button title="Play Track On Device" <Button title="Play Track On Device"
onPress={() => { onPress={() => {
playMusic(currentspot.id) playMusic(currentspot.id)
// promptAsync(); // promptAsync();
}} }}/>
/>
</View> </View>
{/* Button */} {/* Button */}
@ -263,11 +263,11 @@ const MusicDetail = ({ route }) => {
}} }}
onPressOut={handleStopSound} onPressOut={handleStopSound}
onLongPress={handlePlaySound} onLongPress={handlePlaySound}
delayLongPress={1000}> delayLongPress={500}>
<Text style={ { <Text style={ {
color: '#fff', color: '#fff',
fontSize: 16, fontSize: normalize(18),
fontWeight: 'bold',}}> fontWeight: 'bold',}}>
{isPlaying ? 'Playing...' : 'Play'} {isPlaying ? 'Playing...' : 'Play'}
</Text> </Text>

@ -13,7 +13,7 @@ import axios from 'axios';
import * as SecureStore from 'expo-secure-store'; import * as SecureStore from 'expo-secure-store';
import { MY_SECURE_AUTH_STATE_KEY } from './login'; import { MY_SECURE_AUTH_STATE_KEY } from './login';
import * as AuthSession from 'expo-auth-session'; import * as AuthSession from 'expo-auth-session';
import normalize from '../components/Normalize';
import * as Location from 'expo-location'; import * as Location from 'expo-location';
import Icons from '../assets/icons/icons/icon'; import Icons from '../assets/icons/icons/icon';
import LottieView from 'lottie-react-native' import LottieView from 'lottie-react-native'
@ -226,18 +226,18 @@ export default function SpotPage() {
style={{ style={{
fontStyle : 'normal', fontStyle : 'normal',
left: wWidht/9 , left: wWidht/9 ,
top: 75, top: normalize(87),
color: "#FFFFFF", color: "#FFFFFF",
fontSize: 30, fontSize: normalize(35),
fontWeight: "800", fontWeight: "800",
}}>{currentCard.music.title}</Text> }}>{currentCard.music.title}</Text>
<Text <Text
style={{ style={{
fontStyle : 'normal', fontStyle : 'normal',
left: wWidht/9 , left: wWidht/9 ,
top: 75, top: normalize(87),
color: "#FFFFFF", color: "#FFFFFF",
fontSize: 18, fontSize: normalize(20),
}}>{currentCard.music.bio}</Text> }}>{currentCard.music.bio}</Text>
</LinearGradient> </LinearGradient>
</SafeAreaView> </SafeAreaView>

Loading…
Cancel
Save