Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fa18-cs242-assignment3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
basak3
fa18-cs242-assignment3
Commits
150f331c
Commit
150f331c
authored
6 years ago
by
basak3
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'assignment3_1'
Master See merge request
!1
parents
b2c4e662
75a3c796
No related branches found
No related tags found
1 merge request
!1
Master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
navigation/MainTabNavigator.js
+38
-2
38 additions, 2 deletions
navigation/MainTabNavigator.js
with
38 additions
and
2 deletions
navigation/MainTabNavigator.js
+
38
−
2
View file @
150f331c
...
@@ -8,9 +8,15 @@ import ReposScreen from '../screens/ReposScreen';
...
@@ -8,9 +8,15 @@ import ReposScreen from '../screens/ReposScreen';
import
ProfileScreen
from
'
../screens/ProfileScreen
'
;
import
ProfileScreen
from
'
../screens/ProfileScreen
'
;
import
followingScreen
from
'
../screens/FollowingScreen.js
'
;
import
followingScreen
from
'
../screens/FollowingScreen.js
'
;
import
followerScreen
from
'
../screens/FollowerScreen.js
'
;
import
followerScreen
from
'
../screens/FollowerScreen.js
'
;
import
InteractScreen
from
'
../screens/Interact.js
'
import
ExternalProfileScreen
from
'
../screens/ExternalProfileScreen.js
'
const
ProfileStack
=
createStackNavigator
({
const
ProfileStack
=
createStackNavigator
({
Profile
:
ProfileScreen
,
Profile
:
ProfileScreen
,
ExternalProfile
:
ExternalProfileScreen
,
Following
:
followingScreen
,
Followers
:
followerScreen
,
Repos
:
ReposScreen
});
});
ProfileStack
.
navigationOptions
=
{
ProfileStack
.
navigationOptions
=
{
...
@@ -23,6 +29,23 @@ ProfileStack.navigationOptions = {
...
@@ -23,6 +29,23 @@ ProfileStack.navigationOptions = {
),
),
};
};
const
ExternalProfileStack
=
createStackNavigator
({
ExternalProfile
:
ExternalProfileScreen
,
Following
:
followingScreen
,
Followers
:
followerScreen
,
Repos
:
ReposScreen
});
ExternalProfileStack
.
navigationOptions
=
{
tabBarLabel
:
'
ExternalProfile
'
,
tabBarIcon
:
({
focused
})
=>
(
<
TabBarIcon
focused
=
{
focused
}
name
=
{
Platform
.
OS
===
'
ios
'
?
`ios-options
${
focused
?
''
:
'
-outline
'
}
`
:
'
md-options
'
}
/
>
),
};
const
ReposStack
=
createStackNavigator
({
const
ReposStack
=
createStackNavigator
({
Repos
:
ReposScreen
,
Repos
:
ReposScreen
,
});
});
...
@@ -66,11 +89,24 @@ FollowingStack.navigationOptions = {
...
@@ -66,11 +89,24 @@ FollowingStack.navigationOptions = {
};
};
const
InteractStack
=
createStackNavigator
({
Interact
:
InteractScreen
,
});
InteractStack
.
navigationOptions
=
{
tabBarLabel
:
'
Interactions
'
,
tabBarIcon
:
({
focused
})
=>
(
<
TabBarIcon
focused
=
{
focused
}
name
=
{
Platform
.
OS
===
'
ios
'
?
`ios-link
${
focused
?
''
:
'
-outline
'
}
`
:
'
md-link
'
}
/
>
),
};
export
default
createBottomTabNavigator
({
export
default
createBottomTabNavigator
({
ProfileStack
,
ProfileStack
,
ReposStack
,
ReposStack
,
FollowersStack
,
InteractStack
,
FollowingStack
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment