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
d190e1d6
Commit
d190e1d6
authored
Sep 26, 2021
by
Muhammad Zahran Agung Dewantoro
Browse files
Update Auth Screen
parent
523941ec
Changes
7
Hide whitespace changes
Inline
Side-by-side
app.config.js
View file @
d190e1d6
...
...
@@ -6,11 +6,11 @@ export default {
slug
:
"
Clicks
"
,
version
:
"
1.0.0
"
,
orientation
:
"
portrait
"
,
icon
:
"
./assets/images/
i
con.png
"
,
icon
:
"
./assets/images/
clickI
con.png
"
,
scheme
:
"
myapp
"
,
userInterfaceStyle
:
"
automatic
"
,
splash
:
{
image
:
"
./assets/images/
splash
.png
"
,
image
:
"
./assets/images/
adaptive-logo
.png
"
,
resizeMode
:
"
contain
"
,
backgroundColor
:
"
#ffffff
"
,
},
...
...
assets/images/adaptive-logo.png
0 → 100644
View file @
d190e1d6
43.4 KB
assets/images/clickIcon.png
0 → 100644
View file @
d190e1d6
693 KB
src/screens/auth/LandingScreen.tsx
View file @
d190e1d6
import
{
useNavigation
}
from
"
@react-navigation/core
"
;
import
*
as
React
from
"
react
"
;
import
React
,
{
useEffect
}
from
"
react
"
;
import
{
StyleSheet
,
Image
}
from
"
react-native
"
;
import
{
TouchableOpacity
}
from
"
react-native-gesture-handler
"
;
import
{
View
}
from
"
../../components/Themed
"
;
import
Colors
from
"
../../constants/Colors
"
;
import
{
RootTabScreenProps
}
from
"
../../types/navigation
"
;
...
...
@@ -13,12 +12,10 @@ export default function LandingScreen({
const
nav
=
useNavigation
();
return
(
<
View
style
=
{
styles
.
container
}
>
{
/* <TouchableOpacity onPress={() => nav.navigate("OnBoard")}> */
}
<
Image
style
=
{
styles
.
logo
}
source
=
{
require
(
"
../../../assets/images/ClickLogo.png
"
)
}
/>
{
/* </TouchableOpacity> */
}
</
View
>
);
}
...
...
src/screens/auth/LoginScreen.tsx
View file @
d190e1d6
...
...
@@ -63,7 +63,7 @@ const LoginScreen = ({ navigation }: RootTabScreenProps<"TabOne">) => {
<
MainButton
text
=
"Masuk"
colors
=
"primary"
onPress
=
{
()
=>
nav
.
navigate
(
"
Auth
"
,
{
screen
:
"
Logi
n
"
})
}
onPress
=
{
()
=>
nav
.
navigate
(
"
Profile
"
,
{
screen
:
"
ProfileScree
n
"
})
}
/>
</
View
>
<
Spacer
variant
=
{
"
l
"
}
/>
...
...
src/screens/auth/OnBoardingScreen.tsx
View file @
d190e1d6
...
...
@@ -61,7 +61,7 @@ const styles = StyleSheet.create({
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
,
backgroundColor
:
Colors
.
background
,
padding
Horizontal
:
24
,
padding
:
24
,
display
:
"
flex
"
,
},
imageCointainer
:
{
...
...
src/screens/profile/ProfileScreen.tsx
View file @
d190e1d6
...
...
@@ -2,31 +2,45 @@ import { useNavigation } from "@react-navigation/core";
import
*
as
React
from
"
react
"
;
import
{
useState
}
from
"
react
"
;
import
{
StyleSheet
,
Image
}
from
"
react-native
"
;
import
{
TouchableOpacity
}
from
"
react-native-gesture-handler
"
;
import
{
Text
,
View
}
from
"
../../components/Themed
"
;
import
Colors
from
"
../../constants/Colors
"
;
import
{
RootTabScreenProps
}
from
"
../../types/navigation
"
;
import
SmallButton
from
"
../../components/button/SmallButton
"
;
import
{
Avatar
,
Title
,
Caption
}
from
"
react-native-paper
"
;
import
{
Title
}
from
"
react-native-paper
"
;
import
{
MaterialIcons
}
from
"
@expo/vector-icons
"
;
import
Spacer
from
"
../../components/Spacer/Spacer
"
;
import
{
useSelector
}
from
"
react-redux
"
;
import
{
RootState
}
from
"
../../redux/store
"
;
import
{
IUser
}
from
"
../../types/firebase/User
"
;
export
default
function
ProfileScreen
({
navigation
,
}:
RootTabScreenProps
<
"
Profile
"
>
)
{
const
nav
=
useNavigation
();
const
[
name
,
setName
]
=
useState
(
"
Test User
"
);
// const [image, setImage] = useState("");
const
user
:
IUser
=
useSelector
((
state
:
RootState
)
=>
state
.
user
);
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
imageWrapper
}
>
<
Image
style
=
{
styles
.
image
}
source
=
{
require
(
"
../../../assets/images/defaultProfilePic.png
"
)
}
source
=
{
user
.
pic
!==
""
?
{
uri
:
user
.
pic
}
:
require
(
"
../../../assets/images/defaultProfilePic.png
"
)
}
/>
{
/* {user.pic !== "" ? (
<Image style={styles.image} source={{ uri: user.pic }} />
) : (
<Image
style={styles.image}
source={require("../../../assets/images/defaultProfilePic.png")}
/>
)} */
}
<
View
style
=
{
styles
.
textWrapper
}
>
<
Title
style
=
{
styles
.
userName
}
>
{
name
}
</
Title
>
<
Title
style
=
{
styles
.
userName
}
>
{
user
.
firstName
}
{
user
.
lastName
}
</
Title
>
<
Spacer
variant
=
{
"
xl
"
}
/>
<
SmallButton
onPress
=
{
()
=>
nav
.
navigate
(
"
AccountSettings
"
)
}
...
...
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