Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IT2810-H19
Teams
Team 10
Prosjekt 4
Commits
43d1ab52
Commit
43d1ab52
authored
Nov 08, 2019
by
Hedda
Browse files
#20
connected card to database
parent
f37514fe
Changes
1
Show whitespace changes
Inline
Side-by-side
frontend/components/Card.js
View file @
43d1ab52
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
({
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment