Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. const Login = TabNavigator({
  2. SignUp: { screen: SignUp },
  3. SignIn: { screen: SignIn },
  4. }, {
  5. initialRouterName: 'SignUp',
  6. tabBarOptions: {
  7. showLabel: false,
  8. activeTintColor: '#FF327C',
  9. style: {
  10. backgroundColor: 'transparent',
  11. borderTopWidth: 0,
  12. borderBottomWidth: 1,
  13. borderColor: colors.GRAY,
  14. bottom: 350,
  15. },
  16. },
  17. })
  18.  
  19. const App = TabNavigator({
  20. Home: { screen: Home },
  21. Records: { screen: Records },
  22. MedicalDataSearch: { screen: MedicalDataSearch },
  23. Search: { screen: Search },
  24. Profile: { screen: UserProfile },
  25. }, {
  26. initialRouteName: 'Home',
  27. tabBarOptions: {
  28. activeTintColor: '#FF327C',
  29. inactiveTintColor: '#C9C9C9',
  30. showLabel: false,
  31. },
  32. })
  33.  
  34. const Router = StackNavigator({
  35. Login: { screen: Login },
  36. App: { screen: App },
  37. }, {
  38. initialRouteName: 'Login',
  39. headerMode: 'none',
  40. })
  41.  
  42.  
  43. /**** USER PROFILE ****/
  44.  
  45. class UserProfile extends Component {
  46. static navigationOptions = {
  47. tabBarVisible: false,
  48. tabBar: () => ({
  49. icon: ({ tintColor }) => <Icon name="user" color={tintColor} />,
  50. }),
  51. }
  52.  
  53. render() {
  54. return (
  55. <AppWrapper firstName={d.firstName} lastName={d.lastName}>
  56. <View style={styles.container}>
  57. <View style={[styles.row, styles.topRow]}>
  58. <Image source={d.userImage} style={styles.avatar} />
  59. <View style={styles.column}>
  60. <View style={styles.row}>
  61. {d.details.map(section => (
  62. <View>
  63. <Text style={styles.amount}>{section.amount}</Text>
  64. <Text style={styles.title}>{section.title}</Text>
  65. </View>
  66. ))}
  67. </View>
  68. <Text style={styles.location}>{d.location}</Text>
  69. </View>
  70. </View>
  71. </View>
  72. </AppWrapper>
  73. )
  74. }
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement