Menu
React Native Gesture Handler
2.4.0
  • Next
  • 2.4.0
  • 2.3.0
  • 2.1.1
  • 2.0.0
  • 1.10.3
Star
React Native Gesture Handler
  • Versions
    • Next
    • 2.4.0
    • 2.3.0
    • 2.1.1
    • 2.0.0
    • 1.10.3
  • Introduction
  • Installation
  • Troubleshooting
  • Guides
    • Quick start
    • Composing gestures
    • Manual gestures
    • Gesture states & events
    • About Gesture Handlers
    • Cross handler interactions
    • Testing with Jest
    • Migrating off RNGHEnabledRootView
  • API reference
    • Gestures
      • Gesture detector
      • Gesture
      • Pan gesture
      • Tap gesture
      • Long press gesture
      • Rotation gesture
      • Pinch gesture
      • Fling gesture
      • Force touch gesture
      • Native gesture
      • Manual gesture
      • Composed gestures
      • Touch events
      • Gesture state manager
    • Components
      • Buttons
      • Swipeable
      • Touchables
      • DrawerLayout
    • Gesture Handlers
      • Common handler properties
      • Pan
      • Tap
      • Long press
      • Rotation
      • Fling
      • Pinch
      • Force touch
      • NativeView
      • createNativeWrapper()
    • Testing
  • Under the hood
    • How does it work?
Version: 2.4.0

createNativeWrapper

info

We recently released RNGH 2.0 with new Gestures system. Check out RNGH 2.0 section in Introduction for more information.

Creates provided component with NativeViewGestureHandler, allowing it to be part of RNGH's gesture system.

Arguments#

Component#

The component we want to wrap.

config#

Config is an object with properties that can be used on NativeViewGestureHandler

Returns#

Wrapped component.

Software Mansion logo
Star