Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit 5620a8f

Browse files
author
Hunter King
committed
attempting to set up query stuff
1 parent d134344 commit 5620a8f

File tree

1,370 files changed

+7278
-268496
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,370 files changed

+7278
-268496
lines changed

App.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as React from 'react';
2+
import * as Axios from 'axios';
23
// import {useState, useEffect} from 'react';
34
import { SectionList, StyleSheet, View, Text, Button } from 'react-native';
45
import { NavigationContainer } from '@react-navigation/native';
@@ -7,6 +8,7 @@ import { BarCodeScanner } from 'expo-barcode-scanner';
78

89
const navigation = createStackNavigator();
910
const Stack = createStackNavigator();
11+
const queryStringPreamble = 'http://142.93.125.94:5000/'
1012
const styles = StyleSheet.create({
1113
homeStyle: {
1214
flex: 1,
@@ -48,7 +50,12 @@ function HomeScreen( {navigation} ){
4850
const handleBarCodeScanned = ({type, data}) => {
4951
setScanned(true);
5052
var upc = data as String;
51-
alert(`Bar code type ${type} and data ${upc}`);
53+
var queryString = queryStringPreamble;
54+
alert(`Bar code url string: ${queryString}`);
55+
//alert(`Bar code type ${type} and data ${upc}`);
56+
//Do query.
57+
var queryResult = fetch(queryString);
58+
console.log(queryResult);
5259
};
5360

5461
if (hasPermission === null) {
Binary file not shown.

flask-app-test/hello_world.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

flask-app-test/venv/bin/Activate.ps1

Lines changed: 0 additions & 241 deletions
This file was deleted.

flask-app-test/venv/bin/activate

Lines changed: 0 additions & 66 deletions
This file was deleted.

flask-app-test/venv/bin/activate.csh

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)