Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Prasetya Saputra
clone_excelso
Commits
40145286
Commit
40145286
authored
Jul 03, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nambah di tab bar try catch
parent
48041380
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
89 additions
and
79 deletions
+89
-79
Auth.js
view/Auth.js
+89
-79
No files found.
view/Auth.js
View file @
40145286
...
@@ -69,6 +69,7 @@ enableScreens();
...
@@ -69,6 +69,7 @@ enableScreens();
const
Tab
=
createBottomTabNavigator
();
const
Tab
=
createBottomTabNavigator
();
const
BottomNavigation
=
({
state
,
descriptors
,
navigation
})
=>
{
const
BottomNavigation
=
({
state
,
descriptors
,
navigation
})
=>
{
try
{
const
insets
=
useSafeArea
();
const
insets
=
useSafeArea
();
let
paddingBottom
=
0
;
let
paddingBottom
=
0
;
if
(
Platform
.
OS
===
'ios'
)
{
if
(
Platform
.
OS
===
'ios'
)
{
...
@@ -138,6 +139,10 @@ const BottomNavigation = ({ state, descriptors, navigation }) => {
...
@@ -138,6 +139,10 @@ const BottomNavigation = ({ state, descriptors, navigation }) => {
})}
})}
<
/View
>
<
/View
>
)
)
}
catch
(
error
)
{
Alert
.
alert
(
'Error '
+
error
)
}
}
}
function
HandleInbox
({
navigation
})
{
function
HandleInbox
({
navigation
})
{
...
@@ -151,6 +156,7 @@ function HandleInbox({ navigation }) {
...
@@ -151,6 +156,7 @@ function HandleInbox({ navigation }) {
}
}
function
HomePage
({
navigation
})
{
function
HomePage
({
navigation
})
{
try
{
return
(
return
(
<
Tab
.
Navigator
tabBar
=
{
props
=>
<
BottomNavigation
{...
props
}
/>
}
<
Tab
.
Navigator
tabBar
=
{
props
=>
<
BottomNavigation
{...
props
}
/>
}
>
>
...
@@ -162,6 +168,10 @@ function HomePage({ navigation }) {
...
@@ -162,6 +168,10 @@ function HomePage({ navigation }) {
<
Tab
.
Screen
name
=
"ACCOUNT"
component
=
{
Account
}
/
>
<
Tab
.
Screen
name
=
"ACCOUNT"
component
=
{
Account
}
/
>
<
/Tab.Navigator
>
<
/Tab.Navigator
>
);
);
}
catch
(
error
)
{
Alert
.
alert
(
'Error : '
+
error
)
}
}
}
const
Stack
=
createStackNavigator
();
const
Stack
=
createStackNavigator
();
class
Auth
extends
React
.
Component
{
class
Auth
extends
React
.
Component
{
...
...
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