Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfrois committed Jun 22, 2024
1 parent 16d3fcc commit c0f2c88
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Binary file added src/assets/icompass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/Compass.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react';
import { Text, Pressable, View, StyleSheet, TouchableOpacity, Image } from 'react-native';
import { Text, Pressable, View, StyleSheet, TouchableOpacity, Image, PermissionsAndroid } from 'react-native';
// import { styles } from '../styles/styles';
import { Magnetometer } from 'expo-sensors';
import FilledRoundButton from '../components/FilledRoundButton';
Expand Down Expand Up @@ -52,7 +52,7 @@ export default function Compass({ text }) {

return (
<View
style={[styles.filledRoundButton, { backgroundColor: 'black', elevation: 0, transform: [{ rotate: 360 - magnetometer + 'deg' }] }]}
style={[styles.filledRoundButton, { backgroundColor: 'white', elevation: 0, transform: [{ rotate: 360 - magnetometer + 'deg' }] }]}
>
{/* <Text style={{
color: '#517300',
Expand All @@ -65,7 +65,7 @@ export default function Compass({ text }) {
aspectRatio: 1,

}}
source={require('../assets/compass.png')}
source={require('../assets/icompass.png')}
/>
</View>
);
Expand Down
2 changes: 1 addition & 1 deletion src/screens/IniciarScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function IniciarScreen({ route, navigation }) {
</Text>
</View>
</View>
<View style={{margin: 20}}>
<View style={{marginBottom: 15}}>
<RoundButton
text='INICIAR'
onPress={() => navigation.navigate('Atividade', { item })}
Expand Down
1 change: 1 addition & 0 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const styles = StyleSheet.create({
},
subCard : {
height: '80%',
width: '90%',
flex: 1,
flexDirection: 'column',
alignItems: 'center',
Expand Down

0 comments on commit c0f2c88

Please sign in to comment.