Skip to content

Commit 31e84db

Browse files
committed
update
1 parent 2819540 commit 31e84db

File tree

4 files changed

+155
-8
lines changed

4 files changed

+155
-8
lines changed

App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import { WEATHER_API_KEY } from 'react-native-dotenv'
1111
const BASE_WEATHER_URL = "https://api.openweathermap.org/data/2.5/weather?";
1212

1313
export default function App() {
14+
console.log(API_URL)
15+
1416
const [errorMessage, setErrorMessage] = useState(null)
1517
const [currentWeather, setCurrentWeather] = useState(null)
1618
const [unitsSystem, setUnitsSystem] = useState('metric')

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function(api) {
22
api.cache(true);
33
return {
4-
presets: ['babel-preset-expo','module:react-native.env'],
4+
presets: ['babel-preset-expo','module:react-native-dotenv'],
55
};
6-
};
6+
};

package-lock.json

Lines changed: 148 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
"react": "16.13.1",
1717
"react-dom": "16.13.1",
1818
"react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz",
19-
"react-native-dotenv": "^2.5.5",
2019
"react-native-web": "~0.13.12"
2120
},
2221
"devDependencies": {
23-
"@babel/core": "^7.9.0"
22+
"@babel/core": "^7.9.0",
23+
"metro-react-native-babel-preset": "^0.66.0",
24+
"react-native-dotenv": "^2.5.5"
2425
},
2526
"private": true
2627
}

0 commit comments

Comments
 (0)