Advertisement
enkf

Untitled

Dec 27th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import {View, Text, StyleSheet, StatusBar} from 'react-native';
  3. import { Header, Footer, FooterTab, Card, CardItem } from 'native-base';
  4. import { createAppContainer } from 'react-navigation';
  5. import { createBottomTabNavigator } from 'react-navigation-tabs';
  6. import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
  7.  
  8.  
  9.  
  10. import LoginScreen from './Screens/LoginScreen';
  11. import HomeScreen from './Screens/HomeScreen';
  12.  
  13. class App extends Component {
  14. render() {
  15. return (
  16. <View style={{flex: 1}}>
  17. <Header style={{ backgroundColor: '#E91E63' }} />
  18. {/* <StatusBar backgroundColor='#1c313a' barStyle="light-content" /> */}
  19. <LoginScreen/>
  20. {/* <HomeScreen /> */}
  21.  
  22. </View>
  23. )
  24. }
  25. }
  26. const TabNavigator = createBottomTabNavigator({
  27.  
  28. Home:
  29. {
  30. screen: HomeScreen,
  31. navigationOptions: {
  32. tabBarIcon: () => <Icon name="home" size={30} color="#E91E63" />
  33. }
  34. }
  35. // Login: { screen: LoginScreen },
  36. });
  37.  
  38. export default createAppContainer(TabNavigator);
  39. const styles = StyleSheet.create({
  40. container: {
  41. backgroundColor: '#fff',
  42. flex: 1,
  43. justifyContent: 'center',
  44. alignItems: 'center',
  45. },
  46. form: {
  47. flex: 1,
  48. justifyContent: 'center',
  49. backgroundColor: 'transparent',
  50. marginRight: 70,
  51. marginLeft: 60,
  52. },
  53. text: {
  54. flex: 1,
  55. justifyContent: 'center',
  56. textAlign: 'center',
  57. fontSize: 16,
  58. color: '#fff',
  59. marginTop: 10,
  60. width: 100
  61.  
  62. }
  63. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement