thefunbots / react-native-pointer-interactions Goto Github PK
View Code? Open in Web Editor NEWExpose iPad mouse & trackpads interactions to React Native
License: Apache License 2.0
Expose iPad mouse & trackpads interactions to React Native
License: Apache License 2.0
Undefined symbols for architecture x86_64:
"enum case for UIKit.UIPointerEffect.TintMode.overlay(UIKit.UIPointerEffect.TintMode.Type) -> UIKit.UIPointerEffect.TintMode", referenced from:
default argument 1 of UIKit.UIPointerEffect.hover(UIKit.UIPointerEffect.Type) -> (__C.UITargetedPreview, UIKit.UIPointerEffect.TintMode, Swift.Bool, Swift.Bool) -> UIKit.UIPointerEffect in libRNPointerInteractions.a(PointerInteractionView.o)
"type metadata accessor for UIKit.UIPointerEffect", referenced from:
RNPointerInteractions.PointerInteractionView.pointerInteraction(: __C.UIPointerInteraction, styleFor: __C.UIPointerRegion) -> __C.UIPointerStyle? in libRNPointerInteractions.a(PointerInteractionView.o)
"enum case for UIKit.UIPointerShape.horizontalBeam(UIKit.UIPointerShape.Type) -> (CoreGraphics.CGFloat) -> UIKit.UIPointerShape", referenced from:
RNPointerInteractions.PointerInteractionView.pointerInteraction(: __C.UIPointerInteraction, styleFor: __C.UIPointerRegion) -> __C.UIPointerStyle? in libRNPointerInteractions.a(PointerInteractionView.o)
"enum case for UIKit.UIPointerShape.verticalBeam(UIKit.UIPointerShape.Type) -> (CoreGraphics.CGFloat) -> UIKit.UIPointerShape", referenced from:
RNPointerInteractions.PointerInteractionView.pointerInteraction(: __C.UIPointerInteraction, styleFor: __C.UIPointerRegion) -> __C.UIPointerStyle? in libRNPointerInteractions.a(PointerInteractionView.o)
"type metadata accessor for UIKit.UIPointerEffect.TintMode", referenced from:
RNPointerInteractions.PointerInteractionView.pointerInteraction(: __C.UIPointerInteraction, styleFor: __C.UIPointerRegion) -> __C.UIPointerStyle? in libRNPointerInteractions.a(PointerInteractionView.o)
default argument 1 of UIKit.UIPointerEffect.hover(UIKit.UIPointerEffect.Type) -> (__C.UITargetedPreview, UIKit.UIPointerEffect.TintMode, Swift.Bool, Swift.Bool) -> UIKit.UIPointerEffect in libRNPointerInteractions.a(PointerInteractionView.o)
"enum case for UIKit.UIPointerEffect.hover(UIKit.UIPointerEffect.Type) -> (__C.UITargetedPreview, UIKit.UIPointerEffect.TintMode, Swift.Bool, Swift.Bool) -> UIKit.UIPointerEffect", referenced from:
RNPointerInteractions.PointerInteractionView.pointerInteraction(: __C.UIPointerInteraction, styleFor: __C.UIPointerRegion) -> __C.UIPointerStyle? in libRNPointerInteractions.a(PointerInteractionView.o)
"type metadata accessor for UIKit.UIPointerShape", referenced from:
RNPointerInteractions.PointerInteractionView.pointerInteraction(: __C.UIPointerInteraction, styleFor: __C.UIPointerRegion) -> __C.UIPointerStyle? in libRNPointerInteractions.a(PointerInteractionView.o)
default argument 1 of (extension in UIKit):__C.UIPointerStyle.init(effect: UIKit.UIPointerEffect, shape: UIKit.UIPointerShape?) -> __C.UIPointerStyle in libRNPointerInteractions.a(PointerInteractionView.o)
"(extension in UIKit):__C.UIPointerStyle.init(shape: UIKit.UIPointerShape, constrainedAxes: __C.UIAxis) -> __C.UIPointerStyle", referenced from:
RNPointerInteractions.PointerInteractionView.pointerInteraction(: __C.UIPointerInteraction, styleFor: __C.UIPointerRegion) -> __C.UIPointerStyle? in libRNPointerInteractions.a(PointerInteractionView.o)
"enum case for UIKit.UIPointerEffect.highlight(UIKit.UIPointerEffect.Type) -> (__C.UITargetedPreview) -> UIKit.UIPointerEffect", referenced from:
RNPointerInteractions.PointerInteractionView.pointerInteraction(: __C.UIPointerInteraction, styleFor: __C.UIPointerRegion) -> __C.UIPointerStyle? in libRNPointerInteractions.a(PointerInteractionView.o)
"nominal type descriptor for UIKit.UIPointerEffect.TintMode", referenced from:
symbolic So17UITargetedPreviewC______17preferredTintModeSb13prefersShadowSb0F13ScaledContentt 5UIKit15UIPointerEffectO8TintModeO in libRNPointerInteractions.a(PointerInteractionView.o)
"nominal type descriptor for UIKit.UIPointerShape", referenced from:
symbolic _____Sg 5UIKit14UIPointerShapeO in libRNPointerInteractions.a(PointerInteractionView.o)
"(extension in UIKit):__C.UIPointerStyle.init(effect: UIKit.UIPointerEffect, shape: UIKit.UIPointerShape?) -> __C.UIPointerStyle", referenced from:
RNPointerInteractions.PointerInteractionView.pointerInteraction(: __C.UIPointerInteraction, styleFor: __C.UIPointerRegion) -> __C.UIPointerStyle? in libRNPointerInteractions.a(PointerInteractionView.o)
"enum case for UIKit.UIPointerEffect.lift(UIKit.UIPointerEffect.Type) -> (__C.UITargetedPreview) -> UIKit.UIPointerEffect", referenced from:
RNPointerInteractions.PointerInteractionView.pointerInteraction(: __C.UIPointerInteraction, styleFor: __C.UIPointerRegion) -> __C.UIPointerStyle? in libRNPointerInteractions.a(PointerInteractionView.o)
"enum case for UIKit.UIPointerEffect.automatic(UIKit.UIPointerEffect.Type) -> (__C.UITargetedPreview) -> UIKit.UIPointerEffect", referenced from:
RNPointerInteractions.PointerInteractionView.pointerInteraction(_: __C.UIPointerInteraction, styleFor: __C.UIPointerRegion) -> __C.UIPointerStyle? in libRNPointerInteractions.a(PointerInteractionView.o)
ld: symbol(s) not found for architecture x86_64
I am getting this in Xcode can you help??
as a developer, I would like to have a prop to provide a handler for hover events, in order to provide ipad apps with more interactivity
Hi! ๐
Firstly, thanks for your work on this project! ๐
Today I used patch-package to patch @thefunbots/[email protected]
for the project I'm working on.
Here is the diff for adding TypeScript bindings and fallback to <View>
for non-iOS-platforms:
diff --git a/node_modules/@thefunbots/react-native-pointer-interactions/PointerInteractionView.ios.js b/node_modules/@thefunbots/react-native-pointer-interactions/PointerInteractionView.ios.js
new file mode 100644
index 0000000..154d755
--- /dev/null
+++ b/node_modules/@thefunbots/react-native-pointer-interactions/PointerInteractionView.ios.js
@@ -0,0 +1,5 @@
+import { requireNativeComponent } from 'react-native';
+
+const PointerInteractionViewIOS = requireNativeComponent('PointerInteraction');
+
+export { PointerInteractionViewIOS as PointerInteractionView }
\ No newline at end of file
diff --git a/node_modules/@thefunbots/react-native-pointer-interactions/PointerInteractionView.js b/node_modules/@thefunbots/react-native-pointer-interactions/PointerInteractionView.js
new file mode 100644
index 0000000..3e2cfaf
--- /dev/null
+++ b/node_modules/@thefunbots/react-native-pointer-interactions/PointerInteractionView.js
@@ -0,0 +1,3 @@
+import { View } from 'react-native';
+
+export { View as PointerInteractionView }
\ No newline at end of file
diff --git a/node_modules/@thefunbots/react-native-pointer-interactions/index.d.ts b/node_modules/@thefunbots/react-native-pointer-interactions/index.d.ts
new file mode 100644
index 0000000..c4e046f
--- /dev/null
+++ b/node_modules/@thefunbots/react-native-pointer-interactions/index.d.ts
@@ -0,0 +1,17 @@
+import type React from 'react';
+import { ViewProps } from 'react-native';
+
+type PointerInteractionViewIOSProps = {
+ pointerMode?: 'automatic' | 'lift' | 'highlight' | 'hover' | 'verticalBeam' | 'horizontalBeam',
+ beamLength?: number,
+} & ViewProps
+
+
+
+/*declare module '@thefunbots/react-native-pointer-interactions' {
+
+}*/
+
+export const PointerInteractionView: React.FC<PointerInteractionViewIOSProps>;
+
+// export const PointerInteractionView = React.FC<PointerInteractionViewIOSProps>
\ No newline at end of file
diff --git a/node_modules/@thefunbots/react-native-pointer-interactions/index.js b/node_modules/@thefunbots/react-native-pointer-interactions/index.js
index 154d755..cd2729c 100644
--- a/node_modules/@thefunbots/react-native-pointer-interactions/index.js
+++ b/node_modules/@thefunbots/react-native-pointer-interactions/index.js
@@ -1,5 +1,3 @@
-import { requireNativeComponent } from 'react-native';
+import { PointerInteractionView } from "@thefunbots/react-native-pointer-interactions/PointerInteractionView";
-const PointerInteractionViewIOS = requireNativeComponent('PointerInteraction');
-
-export { PointerInteractionViewIOS as PointerInteractionView }
\ No newline at end of file
+export { PointerInteractionView };
\ No newline at end of file
This issue body was partially generated by patch-package.
I'm trying to get this working on MacOS Catalyst (on the M1), but can't seem to get it working. According to Apple's docs it looks like it should be possible but I'm starting to have my doubts. It doesn't crash or anything - it just doesn't work.
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.