How to fix React Native Gesture Handler error

Des
1 min readMay 22, 2021

--

Among many React Native dependencies, React Native Gesture Handler is one very important dependency to have in your project as it helps to make touch interactions and gesture tracking not only smooth, but also dependable and deterministic.

React Native Gesture Handler provides native-driven gesture management APIs for building best possible touch-based experiences in React Native. This dependency provides:

  1. A way to use a platform’s native touch handling system for recognizing pinch, rotation and pan (besides a few other gestures).
  2. The possibility to implement smooth gesture interactions — interactions will be responsive even when the JS thread is overloaded.

Now, lets play

You encounter this error:

CompileC
/Users/[user]/Library/Developer/Xcode/DerivedData/[projectname]-xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNGestureHandler.build/Objects-normal/x86_64/RNGestureHandlerManager.o/Users/[user]/[projectname]/node_modules/react-native-gesture-handler/ios/RNGestureHandlerManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

If you installed a new React Native project or already working on a project and encounter this error it means you’re using a fairly old/deprecated version of RNGH and you need to upgrade.

Run:

npm i react-native-gesture-handler

or

npm i react-native-gesture-handler@1.10.3

This would install the latest version(as at when this article was written)

To install a specific version run:

npm i react-native-gesture-handler@X.X.X

X = version number

My mom was happy about the previous article’s claps. Make her happier here if this helped you.

--

--

Des

•Lifestyle by day 🌝• {coder} by night 🌚• Socials - @deksmond•