Skip to content
You're viewing documentation for Draftbit Classic (v1), our previous platform. See the current Draftbit docs.

Triggers

Triggers let you perform Actions in your app, such as when interactive components like pressable, swipeable, or input components, are engaged by the user. Or when a Screen loads.

For example, a Button component has multiple Triggers, including the most obvious one - On Press. Using a Button’s On Press Trigger, you can configure any of the available Actions to run when that Button is pressed.

If a component has any Triggers, they will be listed in the Interactions tab in the right panel of the Builder. The Triggers that are available will depend on the type of component you want to run Actions with. For example, our Button doesn’t have an On Swiped Right Trigger, but our Deck Swiper component does.

NameDescriptionComponents
On BlurStarts the action when the element is blurred/unfocusedText Area Text Input
On ChangeStarts the action when the value is changedStepper
On Change TextStarts the action when the text is changedText Area Text Input Number Input Styled Text Area Styled Text Field
On Change Text DelayedStarts the action after a given delay from when editing has stopped (debouncing)Text Area Text Input
On CheckStarts the action when the checkbox is checkedCheckbox Checkbox Row
On Date ChangeStarts the action when the date is changedDate Picker
On End ReachedStarts the action when the end threshold is reachedList FlashList Masonry List
On FocusStarts the action when the element is focusedText Area Text Input
On Index ChangedStarts the action when swipedSwiper
On Long PressStarts the action when the element is long pressed.Button Touchable Pressable
On PressStarts the action when the element is pressed.Button Icon Button Link Touchable Checkbox Checkbox Row Radio Button Star Rating Action Sheet Item Action Sheet Cancel Map Callout
On RefreshStarts the action when the element is refreshedList FlashList Masonry List
On Return KeyStarts the action when the Return/Enter key is pressedText Input
On Screen FocusRuns every time the screen comes into focusScreen
On UncheckStarts the action when the checkbox is uncheckedCheckbox Checkbox Row
On Value ChangeStarts the action when the value is changedPicker Radio Button Group Slider Switch Switch Row