import React, {useState, useEffect, Component} from 'react'; import { View, Image, StyleSheet, Text, Button, ScrollView, Pressable, Linking} from 'react-native'; import DropDownPicker from 'react-native-dropdown-picker'; import { parse } from 'json2csv'; import { Table, TableWrapper, Row, Rows, Col, Cols, Cell } from 'react-native-table-component'; //import JSON; //import { Dataframe, readJSON } from "danfojs"; //where data will be put var organizedData //where data will be stored var information = "data goes here" //organize data make it pretty //add loading thing while this organizes all the data !!! function organize(){ var stringDiv = JSON.stringify(information) stringDiv = stringDiv.replace('[[', ''); stringDiv = stringDiv.replace(']]', ''); stringDiv = stringDiv.split(',') //create smaller array variables let variables = [] let value = [] let est = [] //theres a better way to do this but im not fixing it rn for(let i = 0; i false //data parsing goes here function getInfo(){ //console.log(information[6]) if(!information) {Alert.alert("Please try again later! Error retriving data")} else {return information} } //data display class DataButton extends React.Component{ state = { click: false } pullData = () => {fetchData(); this.setState({click: true})} render() { return(