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

day5中代码报错 #56

Open
1048034876 opened this issue Oct 24, 2017 · 9 comments
Open

day5中代码报错 #56

1048034876 opened this issue Oct 24, 2017 · 9 comments

Comments

@1048034876
Copy link

1048034876 commented Oct 24, 2017

运行会提示 React.createElement: type is invalid -- expected a string or a class/function but got: undefined,我尝试只用最简单的mapview作为内容,但是只要有这个组件就会有这个错

@caixindong
Copy link

我也是

@caixindong
Copy link

你解决了吗

@Hideer
Copy link

Hideer commented Mar 19, 2018

@1048034876 @caixindong 你好打扰了,我复制项目下来,在运行react-native run-android的时候出现了如下错误,你能给予我一些帮助么

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Error: more than one library with package name 'com.projectseptember.RNGL'
You can temporarily disable this error with android.enforceUniquePackageName=false
However, this is temporary and will be enforced in 1.0

@FarEnoughStone
Copy link

FarEnoughStone commented Mar 29, 2018

这是因为版本更迭问题,RN从0.43(包括0.43)之后就取消了MapView,无法使用了~~~
还有PropTypes在新版本里也成为一个独立的包了
RN更新太快,都是坑。。。。。。

@FarEnoughStone
Copy link

官方建议使用react-native-maps代替此地图组件

@Hideer
Copy link

Hideer commented Mar 29, 2018

@FarEnoughStone 并没有太懂,我不是第五天的demo进不去,而是到现在项目都没有跑起来,你有什么好的方法么

@FarEnoughStone
Copy link

FarEnoughStone commented Mar 29, 2018

。。。安照这个一步步来就可以了呀,官方教程很明白的

@Hideer
Copy link

Hideer commented Mar 29, 2018

我想你可能吧问题想简单了,我先说明下,我自己写的demo能够跑起来,但是我想尝试他的demo就遇到了我在此之前发的一个突破,哪里有我的错误,但是我并不能很好的解决这个报错 @FarEnoughStone

@FarEnoughStone
Copy link

感觉他的index.android.js文件有问题,我第一次也跑也是同样的问题,不过后来我就把day1,day2...提取出来分开跑了

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