Ingen beskrivning

homeStack.js 902B

123456789101112131415161718192021222324252627282930313233343536
  1. import { createStackNavigator } from "react-navigation-stack";
  2. import { createAppContainer } from 'react-navigation';
  3. import React from "react";
  4. import HomeScreen from '../screens/HomeScreen';
  5. import MocionScreen from '../screens/MocionScreen';
  6. import Header from '../shared/header';
  7. {/*Aqui deberan estar todas las pantallas de la aplicacion
  8. no olvide hacer 'import MyPage from './MyPage' */}
  9. const screens = {
  10. Home: {
  11. screen: HomeScreen,
  12. navigationOptions: {
  13. headerTitle: () => <Header />
  14. }
  15. },
  16. Mocion: {
  17. screen: MocionScreen,
  18. navigationOptions: {
  19. headerTitle: () => <Header />
  20. }
  21. }
  22. }
  23. const HomeStack = createStackNavigator(screens, {
  24. defaultNavigationOptions: {
  25. title: 'MocinesIUPI',
  26. headerStyle: { backgroundColor: "#e81b39",}
  27. }
  28. });
  29. export default createAppContainer(HomeStack);