暂无描述

homeStack.js 652B

123456789101112131415161718192021222324
  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. {/*Aqui deberan estar todas las pantallas de la aplicacion
  7. no olvide hacer 'import MyPage from './MyPage' */}
  8. const screens = {
  9. Home: {
  10. screen: HomeScreen,
  11. backgroundColor: '#e81b39', // no se como hacer que despliegue color
  12. },
  13. Mocion: {
  14. screen: MocionScreen,
  15. }
  16. }
  17. const HomeStack = createStackNavigator(screens);
  18. export default createAppContainer(HomeStack);