Refresh page

Refreshes a screen connected to external data.

๐Ÿ‘‰ The Tag

This set of tags allows to refresh a screen connected to external data, performing an API request and updating the data.

[refresh:pull]

The screen is refreshed with a pull-down gesture.

๐Ÿ“ Where to add the tag: The top-level app page.

This feature is useful for any external data that changes often (i.e. real-time stats, attendance list, collective entries, etc.).

๐Ÿท๏ธ How to add the tag

  1. Create an app page design. Make sure you add container(s) as needed.

  1. Paste the tag into the layer name of the top-level app page.

You can combine combine [refresh:pull] with all the other refresh tags. However, the others:[refresh:always], [refresh:once], [refresh:interval:<seconds>] are not compatible with each other.

  1. Import Figma file to Bravo.

  2. Set up your binding as usual. You can use the example request below to get sample data.

5. Preview on Bravo Vision. ๐Ÿš€

๐Ÿ’พ Example files

Duplicate the files below to see how to set it up!

Example request: Use this request URL to get sample data for the example app above.

This API updates the stock price every minute, so wait at least a minute between each pull to refresh to see the price change.

https://finnhub.io/api/v1/quote?symbol=TSLA&token=brhpek7rh5re1lpb2gl0

Last updated