This file contains 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 React from 'react'; | |
import QRCodeScanner from 'react-native-qrcode-scanner'; | |
import RNCamera from 'react-native-camera'; | |
import { | |
TouchableOpacity, | |
View, | |
Text, | |
} from 'react-native'; | |
import WebView from 'react-native-webview' |
This file contains 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
/*export default class App extends Component { | |
state = .... | |
render() { | |
return ( | |
/*{ | |
<View style={{flex:1}}> | |
this.state.webview && (<WebView | |
source={{uri: this.state.url}} | |
style={{flex:1}} |
This file contains 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
export default class App extends Component { | |
/* | |
state = { | |
webview: false, | |
url: '' | |
} | |
} */ | |
onSuccess = e => { |
This file contains 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
/*export default class App extends Component { | |
state = { | |
webview: false, | |
url: '' | |
} | |
onSuccess = e => { | |
this.setState({url: e.data, webview: true}) | |
}; */ | |
render() { |
This file contains 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
export default class App extends Component { | |
state = { | |
webview: false, | |
url: '' | |
} | |
} |
This file contains 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 React, { Component } from 'react' | |
import { StyleSheet, View, TouchableOpacity, Text } from 'react-native' | |
import { WebView } from 'react-native-webview' | |
import { QRCodeScanner } from 'react-native-qrcode-scanner | |
import { RNCamera } from 'react-native-camera' |
This file contains 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
from GPSPhoto import gpsphoto | |
import requests | |
import os | |
import shutil | |
def address(data): | |
long = data['Longitude'] | |
lat = data['Latitude'] | |
response = requests.get(f'https://maps.googleapis.com/maps/api/geocode/json?latlng={lat},{long}&key=INSERT API KEY') | |
json_response = response.json() |