master
David D'ALMEIDA 2 years ago
parent 1985877ff6
commit 8cf15c7ca9

@ -54,7 +54,6 @@ const tokenSend: string = useSelector(state => state.userReducer.userFladToken);
const locationresp = await Location.getCurrentPositionAsync({});
// send location to server
if(currentMusic){
const body: Record<string, string | boolean | number | (string | boolean | number)[]> = {
longitude: locationresp.coords.longitude,
latitude: locationresp.coords.latitude,
@ -91,7 +90,7 @@ const tokenSend: string = useSelector(state => state.userReducer.userFladToken);
console.log(error);
}
};
const interval = setInterval(sendLocationUpdate, 5000);
const interval = setInterval(sendLocationUpdate, 30000);
return () => {
clearInterval(interval);
};

@ -56,10 +56,13 @@ export default function InscriptionPage() {
name: username,
idFlad: "9835698"
};
//@ts-ignore
dispatch(registerUser(credentials))
playSound()
}
const getTokens2 = async () => {
try {
const redirectUri = AuthSession.makeRedirectUri();

@ -332,6 +332,7 @@ export default function Setting() {
</View>
<View style={styles.musicActually}>
<CardMusic image={currentMusic.image} title={currentMusic.title} description={currentMusic.bio} id='1' />
<Image source={require("../assets/images/FladyShadow.png")} style={styles.mascot} />
</View>

Loading…
Cancel
Save