expo-license-list

A group of react native paper components used to display the licenses your expo app is using

Usage no npm install needed!

<script type="module">
  import expoLicenseList from 'https://cdn.skypack.dev/expo-license-list';
</script>

README

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.