Skip to content

Instantly share code, notes, and snippets.

View QRcodescanner.js
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'
View qr.js
/*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}}
View qr.js
export default class App extends Component {
/*
state = {
webview: false,
url: ''
}
} */
onSuccess = e => {
View qr.js
/*export default class App extends Component {
state = {
webview: false,
url: ''
}
onSuccess = e => {
this.setState({url: e.data, webview: true})
}; */
render() {
View qr.js
export default class App extends Component {
state = {
webview: false,
url: ''
}
}
@medic-code
medic-code / QR.js
Last active Oct 31, 2020
imports of QR Code Scanner
View QR.js
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'
@medic-code
medic-code / imagesorter.py
Last active Apr 25, 2020
Image sorting out
View imagesorter.py
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()