This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const valorCompra = window.prompt("Qual o valor da compra? "); | |
const valorPago = window.prompt("Qual o valor pago?"); | |
if (valorPago < valorCompra) { | |
alert("O valor pago é menor que o valor da compra! Tente novamente!"); | |
} else { | |
const troco = valorPago - valorCompra; | |
let valorRestante = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.fontLigatures": true, | |
"editor.fontSize": 12, | |
"editor.fontFamily": "Fira Code", | |
"explorer.compactFolders": false, | |
"editor.renderLineHighlight": "gutter", | |
"workbench.editor.labelFormat": "short", | |
"extensions.ignoreRecommendations": true, | |
"javascript.updateImportsOnFileMove.enabled": "never", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { DevSettings } from 'react-native'; | |
import { SERVER_URL } from '@env'; | |
import AsyncStorage from '@react-native-community/async-storage'; | |
import axios from 'axios'; | |
const api = axios.create({ | |
baseURL: SERVER_URL, | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled from 'styled-components'; | |
export const Container = styled.View` | |
display: flex; | |
flex: 1; | |
background: transparent; | |
`; | |
export const Footer = styled.View` | |
background: transparent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { TouchableOpacity } from 'react-native'; | |
import Icon from 'react-native-vector-icons/MaterialIcons'; | |
import FooterAppImage from './assets/img/Footer_App.png'; | |
import { Container, Footer, Image } from './styles'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Container> | |
<MapView | |
style={{ | |
position: 'absolute', | |
top: 0, | |
left: 0, | |
right: 0, | |
bottom: 0, | |
}} | |
provider={PROVIDER_GOOGLE} // remove if not using Google Maps |