The List component will generally be used inside of the Fetch component to display a list of entries from an API that has been connected to the Draftbit.
If you're using the List component with a Fetch component, make sure you set the List component's Mapped Data Value to 'data' in the Data Tab.
Fetch Render Item
Item: The default item to appear
Enable so that the contents of the list display horizontally
Number of columns
Define the number of columns the list should display
With the Fetch component, you're able to easily pull live data from a third party RESTful API directly into your apps in Draftbit. You're also able to use this component to store Global Variables and Pass Data using navigation params.
Data to be passed
Video URL (non-Youtube)
Note: There is no built-in validation for Image/Video URLS.
You can add a new API in the Data tab on the left-hand side of the Builder and connect your API to the Fetch component in the Data Tab of the Properties Panel. Read more on the configuration options in the REST Services & Endpoints article.
Learn how to set-up a Fetch component in the Fetching Data article.
Creating a navigate action by adding navigation params to an endpoint will allow you to Pass Data between your screen.
Updated 2 months ago