You're viewing documentation for Draftbit Classic (v1), our previous
platform. See the current Draftbit docs.
Touchable
The Touchable is a wrapper component is used to make other components responsive to the user’s touch. Useful for creating custom buttons or custom touchable containers. You can use it to Trigger Actions.
Style Properties
Section titled “Style Properties”Style properties allow you to customize the look and feel of the component. Combinations of styles applied to components can be saved as Stylesheets to easily reuse styles throughout your app. Styles can also be set dynamically using Variables. To learn more about all the different styling properties and how they work, take a look at Intro to Styling.
Component Specific Styles
Section titled “Component Specific Styles”| Property | Description |
|---|---|
| Disabled Opacity | The opacity when the component is disabled. |
Configuration Properties
Section titled “Configuration Properties”| Property | Description |
|---|---|
| Component Name | To alter the name of the component. The name is reflected in the Components tree. Defaults to Touchable. |
Data Properties
Section titled “Data Properties”| Property | Description |
|---|---|
| Disabled | Disables the component when turned on |
Conditional Display
Section titled “Conditional Display”You can conditionally display a component based on a given condition. Learn more about conditionally displaying components in the Conditional Display doc.
Triggers
Section titled “Triggers”| Name | Description |
|---|---|
| On Press | Starts the action when the element is pressed. |
| On Long Press | Starts the action when the element is long pressed. |