GithubHelp home page GithubHelp logo

thefunbots / react-native-pointer-interactions Goto Github PK

View Code? Open in Web Editor NEW
34.0 3.0 4.0 1.35 MB

Expose iPad mouse & trackpads interactions to React Native

License: Apache License 2.0

JavaScript 35.49% Objective-C 30.94% Ruby 14.67% Swift 18.90%
react-native ipad swift mouse trackpad interactions pointer

react-native-pointer-interactions's People

Contributors

davidlondono avatar dependabot[bot] avatar mrloh avatar sonnysantino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-pointer-interactions's Issues

clang: error: linker command failed with exit code 1 (use -v to see invocation)

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??

Patch: TypeScript bindings and fallback to View for non-iOS platforms

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.