Questions tagged [react-native-gesture-handler]

263 questions
2
votes
0 answers

TypeError: Cannot read property 'createNode' of null, js engine: hermes

Hi everyone need help to resolve ths problem. i was tried to solve ths error
Nikhil
  • 21
  • 1
  • 2
2
votes
2 answers

(React Native Gesture Handler) Tried to synchronously call function from a different thread

I am trying to change state from a pan gesture (React Native Gesture Handler). const [localShowRecents, setLocalShowRecents] = useState(false) const translateY = useSharedValue(0); const gesture = Gesture.Pan() .onStart(() => { …
2
votes
0 answers

Adding boundaries to scaling/panning image viewer in react-native

I have an image (sometimes squared, sometimes different width/height), and I want to create a square image of it. But I want the user to choose which part of the image is in the new image (not necessarily the center part). So I created a image…
2
votes
2 answers

cannot read property handleSetJSResponder of null error in react native v0.70.3

I have updgraded my React Native version to 0.70.3 from 0.64.2 and accordingly upgraded the packages. When running the debugging(react-native run-ios) for IOS, the above error is occurring on react-native-gesture-handler. If you have any method to…
2
votes
1 answer

Getting react-native-gesture-handler module was not found error for react-native-run-ios command

I have updgraded my React Native version to 0.70.3 from 0.64.2 and accordingly upgraded the packages. When running the debugging(react-native run-ios) for IOS, the above error is occurring on react-native-gesture-handler. If you have any method to…
2
votes
1 answer

How can I use react-native-gesture-handler to handle react-native-skia touches inside a ScrollView?

I have a ScrollView containing several graphs made with react-native-skia. The graphs are interactable, i.e. I can touch them and move an indicator on the graph along the x-axis of the graph. My issue is that the whenever the ScrollView events fire…
jorundur
  • 550
  • 1
  • 5
  • 19
2
votes
1 answer

How to stop propagation of Gesture.Tap()?

Here is a minimal example of how I tried to set up two nested GestureDetector with Gesture.Tap() gestures. import React from 'react'; import {StyleSheet, View} from 'react-native'; import {Gesture, GestureDetector} from…
2
votes
1 answer

React Native - Package imports FlatList from "gesture-handler" and causes an error, when changing import from "react-native" scrolling does not work

I'm trying to add the following package to my project but it causes the error: 'Tried to register two views with the same name RNGestureHandlerButton", which it doesn't do in my other project and I don't know why. When I change the import of…
2
votes
2 answers

react-native-gesture-handler not recognize double tap

I followed to the newest RNGH docs I can't get the double tap event to work, seems like RNGH only recognize the event with less tap (I changed the numberOfTaps of const singleTap to 3 and the doubleTap worked) I tried to change the order of…
2
votes
0 answers

React native custom autocomplete onBlur fires before onPress

I have a TextInput component with a List Item component that displays a list of search suggestions below it, similar to an AutoComplete. The issue is when I click one of the suggestions from the list it first fires the onBlur method of the TextInput…
2
votes
1 answer

How to implement swipeable in react native gesture handler

I want to implement a swipe to delete feature on flatlist data. I can get the swipe to work, but it only registers after the touch input is lifted. When I start dragging, the card does not initially drag, but it swipes after I lift the input. How…
2
votes
0 answers

react-native gesture handler module not recognized on ios

Same error that has been asked a gazillion times. My package.json contains: "@react-navigation/native": "^6.0.10", "expo": "^44.0.6", "react-native-gesture-handler": "^2.4.1", "react-native": "0.64.3", According to the documentation I don't need…
FabricioG
  • 3,107
  • 6
  • 35
  • 74
2
votes
4 answers

No feedback after pressing React native onPress

I have a button component with a simple onPress const Press = () => { return (
2
votes
1 answer

Panning an Animated.View, after being scaled, inside boundaries of parent View

I am using react-native-reanimated and react-native-gesture-handler to create a view that allows you to "explore" what's inside of it (even if it exceeds its width and height). Here's my gestureHandler that updates translationX & translationY…
2
votes
1 answer

React Native Swipeable min activation distance

Is there a way to set a minimum activation swipe distance with the Swipeable component from react-native-gesture-handler? Currently, if the user is trying to scroll inside a ScrollView (without height to scroll), it is possible to instead trigger…
Kendall
  • 1,992
  • 7
  • 28
  • 46