Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robbestad/reactnative-uvapp
A port of Inmetas UV App to React Native
https://github.com/robbestad/reactnative-uvapp
Last synced: 20 days ago
JSON representation
A port of Inmetas UV App to React Native
- Host: GitHub
- URL: https://github.com/robbestad/reactnative-uvapp
- Owner: robbestad
- Created: 2015-06-18T06:18:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-23T14:35:10.000Z (over 9 years ago)
- Last Synced: 2024-04-13T17:11:01.129Z (8 months ago)
- Language: Objective-C
- Size: 250 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UV Index
Note: This a JavaScript port of the original UV App that already exists on Apple App store at https://itunes.apple.com/us/app/uv-index/id862966738?mt=8
Step 1:
react-native init uvappStep 2:
Add Styles
npm install --save superagent
Call our APIWithin Xcode, open Info.plist and add a new key, by right clicking inside the editor and selecting Add Row. Use NSLocationWhenInUseUsageDescription as the key name and use the following value:
Step 3
var Request = require('superagent');Request
.get('http://uvapi.herokuapp.com/forecast/longitude=2,17&latitude=41,38')
.set('Accept', 'application/json')
.end(function(err, res){
// Calling the end function will send the request
console.log(res);
});Calcutta, India 22, 34