The Draftbit Developer Hub

Welcome to the Draftbit developer hub. You'll find comprehensive guides and documentation to help you start working with Draftbit as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Touchable

Description

A wrapper component that is used to make other components responsive to user touch. Useful for creating custom buttons.

Here, we're adding an Image into the Touchable element in the builder.

Now, the Image is responsive to user feedback on the phone screen.

Configuration

ParameterDescription
Hit SlopDefine the area beyond the actual dimensions of the wrapped component that will respond to user touch.
onPress handlerDefine the function that will be executed when the Touchable element is pressed.

Resources

React Native Docs
Expo Docs

Updated about a year ago


Touchable


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.