UNPKG

react-native-asset

Version:

Linking and unlinking of assets in your react-native app, works for fonts and sounds

13 lines (12 loc) 331 B
/** * Get an array containing the UUID of each target in the project */ export function getTargetUUIDs(project) { return project.getFirstProject().firstProject.targets.map((t) => t.value); } /** * Get a target by UUID */ export function getTargetByUUID(project, uuid) { return project.pbxNativeTargetSection()[uuid]; }