React native undefined不是react native expo.io中的对象(计算';g.ThemeColors.light';)

React native undefined不是react native expo.io中的对象(计算';g.ThemeColors.light';),react-native,expo,react-native-navigation,React Native,Expo,React Native Navigation,我正在学习react-native并在expo.io上工作,因为react-native中的stackNavigation已更改,我在代码中相应地更改了它,但它给了我以下错误: Device: (970:881) undefined is not an object (evaluating 'g.ThemeColors.light') Evaluating module://react-navigation-stack.js Evaluating module://App.js.js Loadi

我正在学习react-native并在expo.io上工作,因为react-native中的stackNavigation已更改,我在代码中相应地更改了它,但它给了我以下错误:

Device: (970:881) undefined is not an object (evaluating 'g.ThemeColors.light')
Evaluating module://react-navigation-stack.js
Evaluating module://App.js.js
Loading module://App.js
这是我的app.js代码,基本上是通过屏幕导航

import * as React from 'react';
import {
  Text,
  TextInput,
  Button,
  View,
  StyleSheet,

} from 'react-native';
import { Constants } from 'expo';
import { createStackNavigator } from 'react-navigation-stack';
import { createAppContainer } from 'react-navigation';
// You can import from local files
import SignupView from './components/Screens/SignUpView';
import HomePage from './components/Screens/HomePage';
import SuperAdminHome from './components/Screens/SuperAdminHome';
import Departments from './components/Screens/Departments';

// or any pure javascript modules available in npm
import { Card } from 'react-native-paper';



const AppNavigator = createStackNavigator({

 //SplashView:{screen:Splash},
  HomePageScreen:{screen:HomePage},
  SignupScreen: { screen: SignupView },
  SuperAdminView:{screen:SuperAdminHome},
  DepartmentsView:{screen:Departments},

});

const AppContainer = createAppContainer(AppNavigator);

export default AppContainer;

您可以开始学习世博快餐工作示例:


最好参考react导航存储库中的问题,以了解有关此类问题的更多信息,请查看与您看到的错误相匹配的搜索查询:每个线程中都有一些解决方案