Commit 43d1ab52 authored by Hedda's avatar Hedda
Browse files

#20 connected card to database

parent f37514fe
import React, { Component } from 'react';
import { StyleSheet, Text, View, Alert, TouchableHighlight, Image, Dimensions } from 'react-native';
import { connect } from 'react-redux';
import { GetData } from '../api/fetchers'
import { GetData, UpdatePopulatiry } from '../api/fetchers'
import { ScrollView } from 'react-native-gesture-handler';
......@@ -23,7 +23,7 @@ class Card extends Component {
this.setData(5)
if(this.props.page === "Explore"){
if(this.props.word === "all"){
if(this.props.continent){
if(this.props.continent === 'all'){
this.setData()
}else{
this.setData(this.props.continent)}
......@@ -35,6 +35,7 @@ class Card extends Component {
}
render(){
const styles = StyleSheet.create({
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment