-
Notifications
You must be signed in to change notification settings - Fork 2
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
react-native 0.66.5 failed with this library #2
Comments
0.72 works fine. |
I also tried on IOS, it works fine. |
@chj-damon This should be fixed in 0.2.3
Looks like it is failing pointer event imports which were recently added. Is something blocking you from upgrading to the latest RN? |
I'm just maintaining a UI Library which supports most react-native versions from 0.66 above. I don't think it's a good idea to tell developers this UI Library is only compatiable with the latest RN. |
@chj-damon Published a new version 0.2.4. It should fix the 0.66.5 compilation issue. Let me know if you still face any issues. |
tried the latest 0.2.4 version. something went wrong. <ZView touchable>
<View
style={{
width,
// height: 200,
// padding: 40,
backgroundColor: 'rgba(0, 0, 0, 0.5)',
}}
>
<Text style={{color: 'white'}}>Full size overlay view</Text>
</View>
</ZView> when |
@chj-damon Seems to be working fine for me on a physical device and also emulator with/without height/padding. Can you try to repro in a new RN app and check if it is reproducible? |
/Users/damon/Documents/thundersdata/frontend/rn-template/node_modules/react-native-z-view/android/src/main/java/com/reactnativezview/ZViewRootViewGroup.java:11: 错误: 找不到符号
import com.facebook.react.uimanager.JSPointerDispatcher;
^
符号: 类 JSPointerDispatcher
位置: 程序包 com.facebook.react.uimanager
/Users/damon/Documents/thundersdata/frontend/rn-template/node_modules/react-native-z-view/android/src/main/java/com/reactnativezview/ZViewRootViewGroup.java:22: 错误: 找不到符号
private JSPointerDispatcher mJSPointerDispatcher;
^
符号: 类 JSPointerDispatcher
位置: 类 ZViewRootViewGroup
/Users/damon/Documents/thundersdata/frontend/rn-template/node_modules/react-native-z-view/android/src/main/java/com/reactnativezview/ZViewRootViewGroup.java:26: 错误: 找不到符号
if (ReactFeatureFlags.dispatchPointerEvents) {
^
符号: 变量 dispatchPointerEvents
位置: 类 ReactFeatureFlags
/Users/damon/Documents/thundersdata/frontend/rn-template/node_modules/react-native-z-view/android/src/main/java/com/reactnativezview/ZViewRootViewGroup.java:26: 错误: 非法的含括号表达式
if (ReactFeatureFlags.dispatchPointerEvents) {
^
/Users/damon/Documents/thundersdata/frontend/rn-template/node_modules/react-native-z-view/android/src/main/java/com/reactnativezview/ZViewRootViewGroup.java:27: 错误: 找不到符号
this.mJSPointerDispatcher = new JSPointerDispatcher(this);
^
符号: 类 JSPointerDispatcher
位置: 类 ZViewRootViewGroup
/Users/damon/Documents/thundersdata/frontend/rn-template/node_modules/react-native-z-view/android/src/main/java/com/reactnativezview/ZViewRootViewGroup.java:91: 错误: 找不到符号
this.mJSTouchDispatcher.onChildEndedNativeGesture(ev, this.mEventDispatcher);
^
符号: 方法 onChildEndedNativeGesture(MotionEvent,EventDispatcher)
位置: 类型为JSTouchDispatcher的变量 mJSTouchDispatcher
6 个错误
FAILURE: Build failed with an exception.
The text was updated successfully, but these errors were encountered: