Questions tagged [react-native-gesture-handler]

263 questions
19
votes
5 answers

EAS build gives: Invalid `RNGestureHandler.podspec` file: undefined method `exists?'

Recently, when I yarn eas build my expo project I have started failing with [INSTALL_PODS] Using Expo modules [INSTALL_PODS] [Expo] Enabling modular headers for pod ExpoModulesCore ... [INSTALL_PODS] [!] Invalid `Podfile` file: [INSTALL_PODS] [!]…
orome
  • 45,163
  • 57
  • 202
  • 418
19
votes
7 answers

"RNGestureHandlerRootView" was not found in the UIManager

I need to fix this error. Invariant Violation: requireNativeComponent: "RNGestureHandlerRootView" was not found in the UIManager. This error is located at: in RNGestureHandlerRootView (created by GestureHandlerRootView) in GestureHandlerRootView…
16
votes
3 answers

React Native Swipeable (Swipe to delete) not closing

I'm using Swipeable from React-Native-Gesture-Handler to incorporate swipe to delete on my page. When I press delete, the contact gets deleted however the swipeable remains open. I want it to close after it gets pressed but I can't seem to figure…
12
votes
6 answers

You gave us a visitor for the node type TSInstantiationExpression but it's not a valid type

After expo update, my project not working The error is: Failed building JavaScript bundle. node_modules\react-native-gesture-handler\src\index.ts: [BABEL] D:\data\Anonymous\ReactNative\test\node_modules\react-native-gesture-handler\src\index.ts: You…
9
votes
6 answers

React Native error while building for android - Task :react-native-gesture-handler:compileReleaseKotlin FAILED

Here is the error I'm facing while building the android apk of a branch. (does not happen while building for ios). I have been using react-native-gesture-handler since years on this codebase but never faced this error. This error started occuring…
9
votes
2 answers

React Native Gesture Handler Not Working On Android

I am using react-native-gesture-handler and react-native-reanimated package to animate a View in react native. The scale of the view should increase on tap and the backgroundColor should change to red on tap. Everything works fine when I launch the…
9
votes
1 answer

How to properly mix react-native-gesture-handler touchables with react-native touchables?

we're in this situation where we use both react-native-gesture-handler Touchables AND react-native Touchables in our app. (By Touchables I mean TouchableOpacity, TouchableHighlight etc). As you know react-native-gesture-handler provides those…
SudoPlz
  • 20,996
  • 12
  • 82
  • 123
8
votes
2 answers

Remove Warning : [react-native-gesture-handler] Seems like you're using an old API with gesture components, check out new Gestures system

I'm creating a project to learn React Native. I'm using typescript on this project. I added react-navigation : To make react-navigation working, I had to do : yarn add @react-navigation/native yarn add @react-navigation/stack yarn add…
7
votes
2 answers

react native gesture handler is not working with Android emulator or Android device

I am trying to practice using react-native-gesture-handler. Everything renders but I am unable to move a square around the screen. I have installed react-native-reanimated, the appropriate plugin, cleared the cache and installed…
arec
  • 91
  • 1
  • 5
6
votes
1 answer

PanGestureHandler Expected `onGestureHandlerEvent` listener to be a function

Using PanGestureHandler from react-native-gesture-handler with react-native-reanimated with useAnimatedGestureHandler throws this error. Expected onGestureHandlerEvent listener to be a function, instead got a value of object type These are the…
6
votes
1 answer

how to disable RectButton from react-native-gesture-handler

title is pretty much the question. On react-native buttons ie touchableOpacity you have the disabled prop but it doesn't appear to work on RectButton doesn't work
Adam Katz
  • 6,999
  • 11
  • 42
  • 74
5
votes
7 answers

React Native: react-native-gesture-handler: seems like using an old api after yarn

I reinstalled all my node_modules in my react-native project using yarn (Delete node_modules and run yarn). After it finished I've started my app and there heappens to pop up this warning: [react-native-gesture-handler] Seems like you're using an…
JaRoMaster
  • 428
  • 1
  • 3
  • 26
5
votes
4 answers

error: expected a type - eventDispatcher:(nonnull RCTEventDispatcher *)eventDispatcher; AND 'Undefined symbol' errors during iOS build

Cannot build iOS app after upgrading from RN version 0.63.2 to 0.65.0-rc.3. I am getting this error: In file included from…
honor
  • 7,378
  • 10
  • 48
  • 76
5
votes
1 answer

useAnimatedGestureHandler onStart method correct context argument type

TL;DR Has anyone have any examples what the correct generic is for useAnimatedGestureHandler? Problem: I am following this tutorial on Reanimated 2 gestures animation. There's this example: //... const onGestureEvent = useAnimatedGestureHandler({ …
5
votes
1 answer

Native base Footer accepting touches for player in react native

I have a MainFooter components that contains the footer and mini player which animates to full-view when clicked. I have a problem that whenever we click on one of the footer Tabs, the player maximizes and then got stuck there only, being…
1
2 3
17 18