Nessuna descrizione

homeStack.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 PincodeScreen from '../screens/PincodeScreen';
  6. import testscreen from '../screens/testscreen';
  7. import MocionScreen from '../screens/MocionScreen';
  8. import Header from '../shared/header';
  9. {/*Aqui deberan estar todas las pantallas de la aplicacion
  10. no olvide hacer 'import MyPage from './MyPage' */}
  11. const screens = {
  12. Home: {
  13. screen: HomeScreen,
  14. navigationOptions: {
  15. headerTitle: () => <Header />
  16. }
  17. },
  18. Mocion: {
  19. screen: MocionScreen,
  20. },
  21. Pinpage: {
  22. screen: PincodeScreen,
  23. },
  24. navigationOptions: {
  25. headerTitle: () => <Header />
  26. },
  27. test: {
  28. screen: testscreen,
  29. }
  30. }
  31. const HomeStack = createStackNavigator(screens, {
  32. defaultNavigationOptions: {
  33. title: 'MocinesIUPI',
  34. headerStyle: { backgroundColor: "#e81b39",}
  35. }
  36. });
  37. export default createAppContainer(HomeStack);