expo-license-list
A group of components used to display the licenses your expo app is using
Usage
Generate the license JSON data using the following script (uses npm-license-crawler
):
npm-license-crawler -onlyDirectDependencies -json ./assets/licenses.json
Then use like this:
import { openBrowserAsync } from "expo-web-browser";
import { LicenseList, getLicensesFromJSON, LicenseListItem } from "expo-license-list"
<LicenseList
data={getLicensesFromJSON(licenses)}
renderItem={({ item }) => (
<LicenseListItem onPress={(url) => openBrowserAsync(url)} {...item} />
)}
/>
ToDo
- [ ] Add tests.