Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
S
subastasAEAT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Coruña Hacks
2019
subastasAEAT
Commits
a9c5a990
Commit
a9c5a990
authored
Mar 09, 2019
by
Borja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addd list and item click
parent
1dcf41fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
22 deletions
+16
-22
front/subastasAEAT/.expo/packager-info.json
front/subastasAEAT/.expo/packager-info.json
+4
-3
front/subastasAEAT/screens/HomeScreen.js
front/subastasAEAT/screens/HomeScreen.js
+12
-19
No files found.
front/subastasAEAT/.expo/packager-info.json
View file @
a9c5a990
{
"devToolsPort"
:
19002
,
"expoServerPort"
:
19000
,
"packagerPort"
:
null
,
"packagerPid"
:
null
,
"packagerPort"
:
19001
,
"packagerPid"
:
9700
,
"expoServerNgrokUrl"
:
"https://mf-kzf.anonymous.subastasaeat.exp.direct"
,
"packagerNgrokUrl"
:
"https://packager.mf-kzf.anonymous.subastasaeat.exp.direct"
,
"ngrokPid"
:
1164
"ngrokPid"
:
13932
,
"webpackServerPort"
:
null
}
\ No newline at end of file
front/subastasAEAT/screens/HomeScreen.js
View file @
a9c5a990
import
React
,
{
Component
}
from
'
react
'
;
import
{
FlatList
,
ActivityIndicator
}
from
'
react-native
'
;
import
AuctionListItem
from
'
../components/AuctionListItem
'
;
import
AuctionList
from
'
../components/AuctionList
'
;
import
{
Image
,
...
...
@@ -11,13 +9,13 @@ import {
Text
,
TouchableOpacity
,
View
,
ActivityIndicator
}
from
'
react-native
'
;
import
{
WebBrowser
}
from
'
expo
'
;
import
{
MonoText
}
from
'
../components/StyledText
'
;
export
default
class
HomeScreen
extends
React
.
Component
{
static
navigationOptions
=
{
header
:
null
,
...
...
@@ -25,7 +23,7 @@ export default class HomeScreen extends React.Component {
constructor
(
props
){
super
(
props
);
this
.
state
=
{
isLoading
:
true
}
this
.
state
=
{
isLoading
:
true
}
}
componentDidMount
(){
...
...
@@ -48,13 +46,13 @@ export default class HomeScreen extends React.Component {
render
()
{
if
(
this
.
state
.
isLoading
){
return
(
<
View
style
=
{{
flex
:
1
,
padding
:
20
}}
>
<
ActivityIndicator
/>
<
/View
>
)
}
if
(
this
.
state
.
isLoading
){
return
(
<
View
style
=
{{
flex
:
1
,
padding
:
20
}}
>
<
ActivityIndicator
/>
<
/View
>
)
}
return
(
<
View
style
=
{
styles
.
container
}
>
...
...
@@ -76,14 +74,9 @@ export default class HomeScreen extends React.Component {
Bienvenido
a
la
primera
app
de
recopilación
de
subastas
públicas
.
:)
<
/Text
>
<
/View
>
<
AuctionList
dataSource
=
{
this
.
state
.
dataSource
}
><
/AuctionList
>
<
View
style
=
{
styles
.
container
}
>
<
FlatList
data
=
{
this
.
state
.
dataSource
}
renderItem
=
{({
item
})
=>
<
AuctionListItem
element
=
{
item
}
><
/AuctionListItem>
}
keyExtractor
=
{({
id
},
index
)
=>
id
}
/
>
<
/View
>
<
/ScrollView
>
<
/View
>
);
...
...
Write
Preview
Markdown
is supported
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