https://github.com/piotrpdev/expo-license-list
A group of react native paper components used to show what licenses your expo app is using
https://github.com/piotrpdev/expo-license-list
dependencies expo license licenses list react react-native react-native-paper typescript
Last synced: 5 months ago
JSON representation
A group of react native paper components used to show what licenses your expo app is using
- Host: GitHub
- URL: https://github.com/piotrpdev/expo-license-list
- Owner: piotrpdev
- License: mit
- Created: 2021-02-22T20:56:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-06T18:39:29.000Z (about 4 years ago)
- Last Synced: 2024-12-17T05:50:05.186Z (6 months ago)
- Topics: dependencies, expo, license, licenses, list, react, react-native, react-native-paper, typescript
- Language: TypeScript
- Homepage:
- Size: 2.71 MB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# expo-license-list [](https://www.npmjs.com/package/expo-license-list)
A group of components used to display the licenses your expo app is using
[Snack](https://snack.expo.io/@razermoon/expo-licenses-list)
## Usage
Install using npm or yarn:
```
npm i expo-license-list
```
```
yarn add expo-license-list
```Generate the license JSON data using the following script (you need [`npm-license-crawler`](https://www.npmjs.com/package/npm-license-crawler)):
```bash
npm-license-crawler -onlyDirectDependencies -json ./assets/licenses.json
```Then use like this:
```js
import * as React from 'react';import {
LicenseList,
getLicensesFromJSON,
LicenseListItem,
} from 'expo-license-list';import { openBrowserAsync } from "expo-web-browser";
import licenses from './assets/licenses.json';
export default function App() {
return (
(
openBrowserAsync(url)} {...item} />
)}
/>
);
}```
See the [documentation](https://razermoon.github.io/expo-license-list/) for more technical info.
## ToDo
- [ ] Add tests.