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

Compatibility Issue under version 0.27 #3

Open
ustcwudi opened this issue Jun 6, 2016 · 2 comments
Open

Compatibility Issue under version 0.27 #3

ustcwudi opened this issue Jun 6, 2016 · 2 comments

Comments

@ustcwudi
Copy link

ustcwudi commented Jun 6, 2016

index.js needs to be modified because of packages changes:

var React = require('react');
var {
PropTypes,
} = React;
var ReactNative = require('react-native');
var {
EdgeInsetsPropType,
Image,
NativeMethodsMixin,
Platform,
requireNativeComponent,
StyleSheet,
View,
UIManager,
processColor,
ColorPropType,
} = ReactNative;

test success on android

@ustcwudi ustcwudi changed the title Compatibility Issues ON Compatibility Issue under version 0.27 Jun 6, 2016
@yiyangest
Copy link
Owner

这个应该是从0.25版本就开始有这个兼容性问题了。开发这个库的时候react-native版本还是0.20,从0.25以后,引用react从原来的require('react-native')里改为require('react').

@ken-yao
Copy link

ken-yao commented Jul 5, 2016

我在调试的时候也是出现这个问题,除了要改index.js外,KKLocation.js中也要作相应的修改。

刚刚试用了一下,觉得还是挺好用的,感谢作者的劳动。
也希望作者可以抽点时间,兼容到现在的0.28版本,造福新手,哈哈。

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

No branches or pull requests

3 participants