Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expo预览跟打包evaluating '_reactNative.View.proptypes.style'错误 #1197

Closed
824759494 opened this issue Nov 21, 2018 · 6 comments
Closed
Assignees

Comments

@824759494
Copy link

系统信息
expo v2.4.0
node v10.2.0
yarn v1.12.1
taro 1.1.5 - 1.1.8

问题描述
修改.rn_temp下的app.json配置信息报underfined is not an object(evaluating 'View.propTypes.style')

复现步骤
npm run build:rn之后
修改.rn_temp下的app.json配置信息
expo r --no-dev --no-minify 命令下报underfined is not an object(evaluating 'View.propTypes.style')

{
  "expo": {
    "name": "Yome",
    "icon": "./assets/img/home.png",
    "version": "1.0.0",
    "sdkVersion": "27.0.0",
    "splash": {
      "image": "./assets/img/home.png"
    },
    "ios": {
      "bundleIdentifier": "taro.expo"
    },
    "android": {
      "package": "taro.expo"
    },
    "assetBundlePatterns": [
      "assets/**"
    ]
  }
}

补充信息

更改taro-rn里面的View.propTypes.style => PropTypes.style

期望行为
修改app.json后不再需要修改taro-rn里面的内容就可以跑下面的两个命令

expo r --no-dev --no-minify
expo start

报错信息

@taro-bot
Copy link

taro-bot bot commented Nov 21, 2018

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@taro-bot
Copy link

taro-bot bot commented Nov 21, 2018

CC @Pines-Cheng

@Pines-Cheng
Copy link
Contributor

e011610

@824759494
Copy link
Author

???,什么鬼?
此问题并未解决,直接使用模板源码

@Pines-Cheng
Copy link
Contributor

@824759494 最新的版本未解决?注意更新依赖哦。

@824759494
Copy link
Author

@ 824759494最新的版本未解决?注意更新依赖哦。

使用的是v1.2.0-beta.3版本 直接taro init的新建模板
在这个基础上查看的,不是在原有项目上查看的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@yuche @Pines-Cheng @824759494 and others