react-native-legal
Version:
Acknowledge OSS libraries used in your React Native app
14 lines (12 loc) • 432 B
text/typescript
import NativeReactNativeLegal from './NativeReactNativeLegal';
export const ReactNativeLegal = {
getLibrariesAsync: () => {
return NativeReactNativeLegal.getLibrariesAsync();
},
launchLicenseListScreen: (licenseHeaderText?: string) => {
/**
* On Android, the licenses list is displayed as a custom activity
*/
NativeReactNativeLegal.launchLicenseListScreen(licenseHeaderText ?? 'OSS Licenses');
},
};