Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
PPL KI Ganjil 2021 2022
Clicks - Ecosystem Business
clicks-frontend
Commits
97d1a5cc
Commit
97d1a5cc
authored
Oct 05, 2021
by
Muhammad Zahran Agung Dewantoro
Committed by
angelin depthios
Oct 05, 2021
Browse files
feat: create Ecosystem Detail Screen
parent
390be7dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/screens/ecosystem/EcosystemDetailScreen.tsx
View file @
97d1a5cc
import
{
useNavigation
}
from
"
@react-navigation/core
"
;
import
{
useNavigation
}
from
"
@react-navigation/core
"
;
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
import
{
StyleSheet
}
from
"
react-native
"
;
import
{
StyleSheet
,
Image
}
from
"
react-native
"
;
import
{
Text
,
View
}
from
"
../../components/Themed
"
;
import
{
Text
,
View
}
from
"
../../components/Themed
"
;
import
Colors
from
"
../../constants/Colors
"
;
import
Colors
from
"
../../constants/Colors
"
;
import
SmallButton
from
"
../../components/button/SmallButton
"
;
import
Spacer
from
"
../../components/Spacer/Spacer
"
;
import
{
MaterialIcons
}
from
"
@expo/vector-icons
"
;
import
Layout
from
"
../../constants/Layout
"
;
const
EcosystemDetailScreen
=
()
=>
{
const
EcosystemDetailScreen
=
()
=>
{
const
nav
=
useNavigation
();
const
nav
=
useNavigation
();
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
View
>
<
View
style
=
{
styles
.
imageWrapper
}
>
<
Text
>
Layar Detail Ekosistem
</
Text
>
<
Image
style
=
{
styles
.
image
}
source
=
{
{
// uri: {image}
uri
:
"
https://bsmedia.business-standard.com/_media/bs/img/article/2020-12/11/full/1607656152-0479.jpg
"
,
}
}
/>
</
View
>
<
Spacer
variant
=
{
"
l
"
}
/>
<
View
style
=
{
styles
.
textWrapper
}
>
{
/* <Text style={styles.title}>{Title}</Text> */
}
<
Text
style
=
{
styles
.
title
}
>
Petani Beras dan Gandum Jawa Tengah
</
Text
>
<
Spacer
variant
=
{
"
l
"
}
/>
<
SmallButton
text
=
{
"
Lihat Peta Ekosistem
"
}
colors
=
{
"
primary
"
}
onPress
=
{
()
=>
{}
}
/>
<
Spacer
variant
=
{
"
l
"
}
/>
<
View
style
=
{
styles
.
iconWrapper
}
>
<
View
style
=
{
styles
.
bodyWrapper
}
>
<
MaterialIcons
name
=
{
"
group
"
}
style
=
{
styles
.
iconMember
}
size
=
{
30
}
/>
<
View
style
=
{
styles
.
textWrapper
}
>
{
/* <Text style={styles.iconText}>{member} Anggota</Text> */
}
<
Text
style
=
{
styles
.
iconText
}
>
350 Anggota
</
Text
>
</
View
>
</
View
>
<
View
style
=
{
styles
.
bodyWrapper
}
>
<
MaterialIcons
name
=
{
"
star
"
}
style
=
{
styles
.
iconStar
}
size
=
{
30
}
/>
<
View
style
=
{
styles
.
textWrapper
}
>
{
/* <Text style={styles.iconText}>{rate}</Text> */
}
<
Text
style
=
{
styles
.
iconText
}
>
4.7
</
Text
>
</
View
>
</
View
>
</
View
>
<
Spacer
variant
=
{
"
s
"
}
/>
<
Text
style
=
{
styles
.
textBody
}
>
{
/* {content} */
}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip.
</
Text
>
<
Spacer
variant
=
{
"
xl
"
}
/>
<
SmallButton
text
=
{
"
Keluar dari Ekosistem
"
}
colors
=
{
"
warning
"
}
onPress
=
{
()
=>
{}
}
/>
</
View
>
</
View
>
</
View
>
</
View
>
);
);
...
@@ -19,9 +71,48 @@ const EcosystemDetailScreen = () => {
...
@@ -19,9 +71,48 @@ const EcosystemDetailScreen = () => {
const
styles
=
StyleSheet
.
create
({
const
styles
=
StyleSheet
.
create
({
container
:
{
container
:
{
flex
:
1
,
flex
:
1
,
justifyContent
:
"
flex-start
"
,
alignItems
:
"
center
"
,
backgroundColor
:
Colors
.
background
,
backgroundColor
:
Colors
.
background
,
paddingHorizontal
:
24
,
display
:
"
flex
"
,
justifyContent
:
"
center
"
,
},
image
:
{
width
:
"
100%
"
,
height
:
Layout
.
window
.
height
*
0.2
,
},
title
:
{
color
:
Colors
.
text
.
title
,
fontSize
:
24
,
},
textBody
:
{
color
:
Colors
.
text
.
body
,
fontSize
:
16
,
},
iconMember
:
{
color
:
Colors
.
icon
.
tab
.
inactive
,
},
iconStar
:
{
color
:
Colors
.
icon
.
star
,
},
iconText
:
{
fontSize
:
16
,
color
:
Colors
.
text
.
subtitle
,
paddingLeft
:
8
,
},
imageWrapper
:
{
width
:
"
100%
"
,
},
iconWrapper
:
{
width
:
"
100%
"
,
flexDirection
:
"
row
"
,
},
bodyWrapper
:
{
flex
:
1
,
flexDirection
:
"
row
"
,
},
textWrapper
:
{
marginTop
:
4
,
width
:
Layout
.
window
.
width
*
0.9
,
},
},
});
});
...
...
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