Touchable

Description of components that enable click actions in another components

What is Touchable?

Touchable defines clickable areas in your application in widgets that are not clickable by default.

See how the structure is represented:

AttributeTypeRequiredDefinition
onPressActionDefines one or more actions to be performed when a child component is clicked.
click Analytic EventAnalytics ClickClick event that will be triggered if an analytics service was implemented.
childServer DrivenComponentDefines a widget that will trigger the onPress attribute.

How to use it?

Touchable(onPress = listOf(
			         Alert(title = "Image", 
                     message = "Clicked on Message")),
          child = Text("Text with action")
)