import React, {useState, useEffect} from 'react';
import { View, Image, Text, Button, ScrollView, Pressable, Linking,StyleSheet} from 'react-native';
import {Picker, DataButton} from "./Datos"
import { styles } from './styles';
//actual application
class App extends React.Component {
//the text at the end of a page gets cut off if anyone knows how to fix that?
vars = {
welcome:
Bienvenido!Aquí podra mantenerse al tanto con las
últimas noticias relacionadas al Censo y tener acceso a los
los Demographic Data Profiles de cada municipio de
Puerto Rico.
Contactenos:Prof: Hernando Mattei Torres
Angelica Rosario Santos
Data from:,
newsView:
Noticias,
dataOp:
DATA VIEWING PROJECT
}
//current state
state = {current: this.vars.welcome}
//state changing functions
setHome = () => this.setState({ current: this.vars.welcome })
setData = () => this.setState({current: this.vars.dataOp})
setNews = () => this.setState({ current: this.vars.newsView })
//render app
render() {
return (
Demographic Data Viewer Noticias Hogar Datos
{this.state.current}
);
}
}
export default App