Menu
React Native Gesture Handler
2.0.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
  • Guides
    • Introduction
    • Quick start
    • Composing gestures
    • Manual gestures
    • What's new in 2.0
    • Running Example App
  • 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
  • Under the hood
    • Gesture states & events
    • How does it work?
  • Gesture handlers
    • Basics
      • About Gesture Handlers
      • Handler State
      • Cross handler interactions
    • API reference
      • Common handler properties
      • Pan
      • Tap
      • Long press
      • Rotation
      • Fling
      • Pinch
      • Force touch
      • NativeView
      • createNativeWrapper()
  • Contributing
  • Troubleshooting
  • Learning Resources
  • Community
This is documentation for React Native Gesture Handler 2.0.0, which is no longer actively maintained.
For up-to-date documentation, see the latest version (2.4.0).
Version: 2.0.0

createNativeWrapper

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