Last active
February 6, 2023 09:07
-
-
Save rbro112/3cb441c9c4470e668864b4f2378defe7 to your computer and use it in GitHub Desktop.
A full sample GP response for a simple listing screen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"screens": [ | |
{ | |
"id": "ROOT", | |
"screenProperties": {}, | |
"layout": { | |
"wide": {}, | |
"compact": { | |
"type": "SingleColumnLayout", | |
"main": { | |
"type": "MultipleSectionsPlacement", | |
"sectionDetails": [ | |
{ | |
"sectionId": "hero_section" | |
}, | |
{ | |
"sectionId": "title_section" | |
} | |
] | |
}, | |
"nav": { | |
"type": "SingleSectionPlacement", | |
"sectionDetail": { | |
"sectionId": "toolbar_section" | |
} | |
}, | |
"footer": { | |
"type": "SingleSectionPlacement", | |
"sectionDetail": { | |
"sectionId": "book_bar_footer" | |
} | |
} | |
} | |
} | |
}, | |
], | |
"sections": [ | |
{ | |
"id": "toolbar_section", | |
"sectionComponentType": "TOOLBAR", | |
"section": { | |
"type": "ToolbarSection", | |
"nav_button": { | |
"onClickAction": { | |
"type": "NavigateBack", | |
"screenId": "previous_screen_id" | |
} | |
} | |
} | |
}, | |
{ | |
"id": "hero_section", | |
"sectionComponentType": "HERO", | |
"section": { | |
"type": "HeroSection", | |
"images": [ | |
"api.airbnb.com/...", | |
], | |
} | |
}, | |
{ | |
"id": "title_section", | |
"sectionComponentType": "TITLE", | |
"section": { | |
"type": "TitleSection", | |
"title": "Seamist Beach Cottage, Private Beach & Ocean Views", | |
"titleStyle": {} | |
} | |
}, | |
{ | |
"id": "book_bar_footer", | |
"sectionComponentType": "BOOK_BAR_FOOTER", | |
"section": { | |
"type": "ButtonSection", | |
"title": "$450/night", | |
"button": { | |
"text": "Check Availability", | |
"onClickAction": { | |
"type": "NavigateToScreen", | |
"screenId": "next_screen_id" | |
} | |
}, | |
} | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool stuff, still helpful and counting !!