Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giang Tran
InvestCustomer
Commits
ede0f37a
Commit
ede0f37a
authored
Jun 09, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
460c8ee6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
item.js
src/Screens/NewFeed/Tab1/item.js
+5
-3
images.js
src/assets/images.js
+1
-0
placeholderImage.png
src/assets/images/placeholderImage.png
+0
-0
No files found.
src/Screens/NewFeed/Tab1/item.js
View file @
ede0f37a
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
,
useState
}
from
'react'
;
import
{
View
,
Text
,
StyleSheet
,
Image
,
TouchableOpacity
}
from
'react-native'
;
import
{
View
,
Text
,
StyleSheet
,
Image
,
TouchableOpacity
}
from
'react-native'
;
import
Block
from
'../../../components/Block'
;
import
Block
from
'../../../components/Block'
;
...
@@ -11,10 +11,12 @@ import {DETAILNEW} from '../../../routers/ScreenNames';
...
@@ -11,10 +11,12 @@ import {DETAILNEW} from '../../../routers/ScreenNames';
const
Item
=
(
props
)
=>
{
const
Item
=
(
props
)
=>
{
const
navigate
=
useNavigation
();
const
navigate
=
useNavigation
();
const
{
title
,
image
,
published_at
,
id
}
=
props
.
item
;
const
{
title
,
image
,
published_at
,
id
}
=
props
.
item
;
return
(
return
(
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
DETAILNEW
,
{
id
})}
onPress
=
{()
=>
navigate
.
navigate
(
DETAILNEW
,
{
id
})}
style
=
{
styles
.
container
}
>
style
=
{
styles
.
container
}
>
<
Text
numberOfLines
=
{
2
}
style
=
{
styles
.
txtTitle
}
>
<
Text
numberOfLines
=
{
2
}
style
=
{
styles
.
txtTitle
}
>
{
title
}
{
title
}
<
/Text
>
<
/Text
>
...
@@ -22,7 +24,6 @@ const Item = (props) => {
...
@@ -22,7 +24,6 @@ const Item = (props) => {
<
Icon
name
=
{
'calendar'
}
style
=
{{
marginRight
:
10
}}
size
=
{
15
}
/
>
<
Icon
name
=
{
'calendar'
}
style
=
{{
marginRight
:
10
}}
size
=
{
15
}
/
>
<
Text
style
=
{
styles
.
txtDate
}
>
{
published_at
}
<
/Text
>
<
Text
style
=
{
styles
.
txtDate
}
>
{
published_at
}
<
/Text
>
<
/View
>
<
/View
>
<
Image
source
=
{{
uri
:
image
}}
resizeMode
=
{
'cover'
}
style
=
{
styles
.
img
}
/
>
<
Image
source
=
{{
uri
:
image
}}
resizeMode
=
{
'cover'
}
style
=
{
styles
.
img
}
/
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
);
);
...
@@ -52,6 +53,7 @@ const styles = StyleSheet.create({
...
@@ -52,6 +53,7 @@ const styles = StyleSheet.create({
height
:
HEIGHTXD
(
500
),
height
:
HEIGHTXD
(
500
),
borderRadius
:
10
,
borderRadius
:
10
,
marginTop
:
5
,
marginTop
:
5
,
width
:
'100%'
,
},
},
row
:
{
row
:
{
flexDirection
:
'row'
,
flexDirection
:
'row'
,
...
...
src/assets/images.js
View file @
ede0f37a
...
@@ -110,6 +110,7 @@ const images = {
...
@@ -110,6 +110,7 @@ const images = {
toolProfitLoss
:
require
(
'./images/toolProfitLoss.png'
),
toolProfitLoss
:
require
(
'./images/toolProfitLoss.png'
),
toolRate
:
require
(
'./images/toolRate.png'
),
toolRate
:
require
(
'./images/toolRate.png'
),
toolStopLoss
:
require
(
'./images/toolStopLoss.png'
),
toolStopLoss
:
require
(
'./images/toolStopLoss.png'
),
placeholderImage
:
require
(
'./images/placeholderImage.png'
),
};
};
export
default
images
;
export
default
images
;
src/assets/images/placeholderImage.png
0 → 100644
View file @
ede0f37a
927 Bytes
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