andrea.nieves7 2 years ago
parent
commit
9795ed280f
4 changed files with 20 additions and 27 deletions
  1. 3
    2
      App.js
  2. 11
    0
      package-lock.json
  3. 1
    0
      package.json
  4. 5
    25
      yarn.lock

+ 3
- 2
App.js View File

@@ -2,7 +2,7 @@ import React, {useState, useEffect, Component} from 'react';
2 2
 import { View, Image, StyleSheet, Text, Button, ScrollView, Pressable, Linking} from 'react-native';
3 3
 import DropDownPicker from 'react-native-dropdown-picker';
4 4
 import { parse } from 'json2csv';
5
-import { Table, TableWrapper, Row, Rows, Col, Cols, Cell } from 'react-native-table-component';
5
+//import { Table, TableWrapper, Row, Rows, Col, Cols, Cell } from 'react-native-table-component';
6 6
 
7 7
 //import JSON;
8 8
 //import { Dataframe, readJSON } from "danfojs";
@@ -100,7 +100,8 @@ function fetchData() {
100 100
 	var query = queryBase + "(" + table + ")&for=county:" + pueblo + queryEnd 
101 101
 	
102 102
 	if(pueblo && table)
103
-	{loadDoc(query)}
103
+	{loadDoc(query);
104
+	if(information == ""){Alert.alert("No data response found.")}}
104 105
 	else
105 106
 	{Alert.alert("Please fill every parameter before calling!")}
106 107
 	

+ 11
- 0
package-lock.json View File

@@ -21,6 +21,7 @@
21 21
         "react-native": "0.70.5",
22 22
         "react-native-dropdown-picker": "^5.4.3",
23 23
         "react-native-element-dropdown": "^2.5.0",
24
+        "react-native-table-component": "^1.2.2",
24 25
         "react-native-web": "~0.18.9"
25 26
       },
26 27
       "devDependencies": {
@@ -15482,6 +15483,11 @@
15482 15483
       "integrity": "sha512-oOanj84fJEXUg9FoEAQomA8ISG+DVIrTZ3qF7m69VQUJyOGYyDZmPqKcjvRku4KXlEH6hWO9i4ACLzNBh8gC0A==",
15483 15484
       "license": "MIT"
15484 15485
     },
15486
+    "node_modules/react-native-table-component": {
15487
+      "version": "1.2.2",
15488
+      "resolved": "https://registry.npmjs.org/react-native-table-component/-/react-native-table-component-1.2.2.tgz",
15489
+      "integrity": "sha512-7bbsi5431iWcjj3toASh8lFHGi6AG/+MTd4M7GuksXKxx/CFs/Qwv1Ys7D2wgyuYKe3hxWNfSVrteFj0tOYXYw=="
15490
+    },
15485 15491
     "node_modules/react-native-web": {
15486 15492
       "version": "0.18.10",
15487 15493
       "resolved": "https://registry.npmjs.org/react-native-web/-/react-native-web-0.18.10.tgz",
@@ -31873,6 +31879,11 @@
31873 31879
       "resolved": "https://registry.npmjs.org/react-native-gradle-plugin/-/react-native-gradle-plugin-0.70.3.tgz",
31874 31880
       "integrity": "sha512-oOanj84fJEXUg9FoEAQomA8ISG+DVIrTZ3qF7m69VQUJyOGYyDZmPqKcjvRku4KXlEH6hWO9i4ACLzNBh8gC0A=="
31875 31881
     },
31882
+    "react-native-table-component": {
31883
+      "version": "1.2.2",
31884
+      "resolved": "https://registry.npmjs.org/react-native-table-component/-/react-native-table-component-1.2.2.tgz",
31885
+      "integrity": "sha512-7bbsi5431iWcjj3toASh8lFHGi6AG/+MTd4M7GuksXKxx/CFs/Qwv1Ys7D2wgyuYKe3hxWNfSVrteFj0tOYXYw=="
31886
+    },
31876 31887
     "react-native-web": {
31877 31888
       "version": "0.18.10",
31878 31889
       "resolved": "https://registry.npmjs.org/react-native-web/-/react-native-web-0.18.10.tgz",

+ 1
- 0
package.json View File

@@ -22,6 +22,7 @@
22 22
     "react-native": "0.70.5",
23 23
     "react-native-dropdown-picker": "^5.4.3",
24 24
     "react-native-element-dropdown": "^2.5.0",
25
+    "react-native-table-component": "^1.2.2",
25 26
     "react-native-web": "~0.18.9"
26 27
   },
27 28
   "devDependencies": {

+ 5
- 25
yarn.lock View File

@@ -2799,13 +2799,6 @@
2799 2799
   "resolved" "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz"
2800 2800
   "version" "2.2.0"
2801 2801
 
2802
-"bindings@^1.5.0":
2803
-  "integrity" "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ=="
2804
-  "resolved" "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz"
2805
-  "version" "1.5.0"
2806
-  dependencies:
2807
-    "file-uri-to-path" "1.0.0"
2808
-
2809 2802
 "bl@^4.1.0":
2810 2803
   "integrity" "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w=="
2811 2804
   "resolved" "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz"
@@ -5401,19 +5394,6 @@
5401 5394
   "resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
5402 5395
   "version" "1.0.0"
5403 5396
 
5404
-"fsevents@^1.2.7":
5405
-  "integrity" "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw=="
5406
-  "resolved" "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz"
5407
-  "version" "1.2.13"
5408
-  dependencies:
5409
-    "bindings" "^1.5.0"
5410
-    "nan" "^2.12.1"
5411
-
5412
-"fsevents@^2.1.2", "fsevents@~2.3.2":
5413
-  "integrity" "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="
5414
-  "resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
5415
-  "version" "2.3.2"
5416
-
5417 5397
 "function-bind@^1.1.1":
5418 5398
   "integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
5419 5399
   "resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
@@ -7663,11 +7643,6 @@
7663 7643
     "object-assign" "^4.0.1"
7664 7644
     "thenify-all" "^1.0.0"
7665 7645
 
7666
-"nan@^2.12.1":
7667
-  "integrity" "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ=="
7668
-  "resolved" "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz"
7669
-  "version" "2.17.0"
7670
-
7671 7646
 "nanomatch@^1.2.9":
7672 7647
   "integrity" "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA=="
7673 7648
   "resolved" "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz"
@@ -9091,6 +9066,11 @@
9091 9066
   "resolved" "https://registry.npmjs.org/react-native-gradle-plugin/-/react-native-gradle-plugin-0.70.3.tgz"
9092 9067
   "version" "0.70.3"
9093 9068
 
9069
+"react-native-table-component@^1.2.2":
9070
+  "integrity" "sha512-7bbsi5431iWcjj3toASh8lFHGi6AG/+MTd4M7GuksXKxx/CFs/Qwv1Ys7D2wgyuYKe3hxWNfSVrteFj0tOYXYw=="
9071
+  "resolved" "https://registry.npmjs.org/react-native-table-component/-/react-native-table-component-1.2.2.tgz"
9072
+  "version" "1.2.2"
9073
+
9094 9074
 "react-native-web@~0.18.9":
9095 9075
   "integrity" "sha512-YV2gtZa1n7ulTGp+HcxH+KsAtaDPBI/dKd9oOQS31zyFHURjObLUVkKnGjkmlYAUReWfvmlU64GzyNwoZF9/tA=="
9096 9076
   "resolved" "https://registry.npmjs.org/react-native-web/-/react-native-web-0.18.10.tgz"