expo-license-list
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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.

Package Sidebar

Install

npm i expo-license-list

Weekly Downloads

4

Version

1.0.5

License

MIT

Unpacked Size

34.9 kB

Total Files

24

Last publish

Collaborators

  • razermoon