Skip to content

Commit

Permalink
I added a background image for the type of fog weather
Browse files Browse the repository at this point in the history
  • Loading branch information
aline-borges committed Nov 15, 2020
1 parent 205f40a commit de9af6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Binary file added assets/images/weather/background/day/fog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/weather/background/night/fog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/screens/Location/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const Location = ({ route, navigation }) => {
if(weather === 'Rain') {return 'Chuva'}
if(weather === 'Thunderstorm') {return 'Tempestade'}
if(weather === 'Snow') {return 'Neve'}
if(weather === 'Fog') {return 'Nevoeiro'}
}

const backgroundRandom = () => {
Expand All @@ -89,6 +90,7 @@ const Location = ({ route, navigation }) => {
if(weather === 'Rain') {return background = require('../../../assets/images/weather/background/day/rain.png')}
if(weather === 'Thunderstorm') {return background = require('../../../assets/images/weather/background/day/thunder.png')}
if(weather === 'Snow') {return background = require('../../../assets/images/weather/background/day/snowfall.png')}
if(weather === 'Fog') {return background = require('../../../assets/images/weather/background/day/fog.png')}
}

if((time >= 18) || (time <= 5)){
Expand All @@ -97,6 +99,7 @@ const Location = ({ route, navigation }) => {
if(weather === 'Rain') {return background = require('../../../assets/images/weather/background/night/rain.png')}
if(weather === 'Thunderstorm') {return background = require('../../../assets/images/weather/background/night/thunder.png')}
if(weather === 'Snow') {return background = require('../../../assets/images/weather/background/night/snowfall.png')}
if(weather === 'Fog') {return background = require('../../../assets/images/weather/background/night/fog.png')}

}

Expand Down

0 comments on commit de9af6e

Please sign in to comment.