applerdotxyz / rn-composable-ui

react-native, starter-kit, template, multi-platform, expo, web, mobile, ios, android
https://liveedit.vercel.app
Mozilla Public License 2.0
1 stars 4 forks source link

add url fetched data to be passable to components #38

Open saurshaz opened 3 years ago

saurshaz commented 3 years ago

So if the data property is called data

and there's a url https://foo.com that gives back that data,

have a property dataFetchwhich can take

{ method: "get", url: "https://foo.com" }

as the value

Basically take away xhr the data request from project's codebase