src/navigators/ProfileNavigator.js
import { createStackNavigator } from 'react-navigation';
import Icon from 'react-native-vector-icons/MaterialIcons';
import React from 'react';
import { commonNavigationOptions, iconColor, iconSize } from './styles';
import ProfileAboutApp from '../components/profile/ProfileAboutApp';
import ProfileAboutFOI from '../components/profile/ProfileAboutFOI';
import ProfileAcknowledgements from '../components/profile/ProfileAcknowledgements';
import ProfileContact from '../components/profile/ProfileContact';
import ProfileDataUsePolicy from '../components/profile/ProfileDataUsePolicy';
import ProfileFAQDetails from '../containers/profile/ProfileFAQDetails';
import ProfileFAQMaster from '../containers/profile/ProfileFAQMaster';
import ProfileFeedback from '../components/profile/ProfileFeedback';
import ProfileIntroVideo from '../components/profile/ProfileIntroVideo';
import ProfileLoginScreen from '../containers/profile/ProfileLoginScreen';
import ProfileStartScreen from '../containers/profile/ProfileStartScreen';
import ProfileTermsOfUse from '../components/profile/ProfileTermsOfUse';
import I18n from '../i18n';
const ProfileNavigator = createStackNavigator(
{
ProfileStart: { screen: ProfileStartScreen },
ProfileLogin: { screen: ProfileLoginScreen },
ProfileIntroVideo: { screen: ProfileIntroVideo },
ProfileAboutApp: { screen: ProfileAboutApp },
ProfileAboutFOI: { screen: ProfileAboutFOI },
ProfileFAQMaster: { screen: ProfileFAQMaster },
ProfileFAQDetails: { screen: ProfileFAQDetails },
ProfileContact: { screen: ProfileContact },
ProfileFeedback: { screen: ProfileFeedback },
ProfileDataUsePolicy: { screen: ProfileDataUsePolicy },
ProfileTermsOfUse: { screen: ProfileTermsOfUse },
ProfileAcknowledgements: { screen: ProfileAcknowledgements },
},
{
navigationOptions: {
...commonNavigationOptions,
tabBarLabel: I18n.t('more'),
tabBarIcon: () => (
<Icon size={iconSize} color={iconColor} name="more-horiz" />
),
},
defaultNavigationOptions: {
...commonNavigationOptions,
},
}
);
export default ProfileNavigator;