Skip to content

Instantly share code, notes, and snippets.

@rbro112
Last active June 28, 2021 18:21
Show Gist options
  • Save rbro112/9be58602a98e9a284e09ec24b34c5b4f to your computer and use it in GitHub Desktop.
Save rbro112/9be58602a98e9a284e09ec24b34c5b4f to your computer and use it in GitHub Desktop.
A sample of the GP IAction schema.
interface IAction {}
# A simple action that will navigate the user to the screen matching the screenId when invoked
type NavigateToScreen implements IAction {
screenId: String
}
# A sample TitleSection using an IAction type to handle the click of the subtitle
type TitleSection {
...
subtitle: String
# Action to be taken when tapping the subtitle
onSubtitleClickAction: IAction
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment