Undefined 不是对象(正在计算 ExponentConstants.linkinguri)

Undefined is not an object (evaluating ExponentConstants.linkinguri)

有人可以指导我解决这个问题吗?这个问题是在我尝试在我的 React Native 项目中使用 expo 时出现的。

依赖关系:

"expo": "^21.0.2",
"react": "^16.0.0-alpha.12",
"react-native": "^0.48.4",
"react-native-animatable": "^1.2.4",
"react-native-snap-carousel": "^3.3.2",
"react-native-swiper": "^1.5.13",
"react-navigation": "^1.0.0-beta.13"

错误信息

如果我使用 create-react-native-app 启动我的项目,我没有看到您提到的问题。但是,如果我使用 react-native init 创建我的项目,我会看到同样的问题。要充分利用 React Native 和 Expo 客户端的集成,请执行以下操作:

npm install -g create-react-native-app

create-react-native-app 你的项目名称

cd 你的项目名称

npm 启动

希望对您有所帮助。