Skip to content
Snippets Groups Projects
Commit 150f331c authored by basak3's avatar basak3
Browse files

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!1Master
...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment