29 lines
674 B
JavaScript
29 lines
674 B
JavaScript
// Metro module 5510 (f5511).
|
|
import { Image as Image2 } from "react-native";
|
|
export function parsePossibleSources(a0) {
|
|
let r0;
|
|
L16: {
|
|
const uri = a0.uri;
|
|
if (typeof a0 === "string") {
|
|
r0 = {
|
|
sourceName: a0
|
|
};
|
|
} else {
|
|
if (typeof a0 === "object" && !uri) {
|
|
r0 = {
|
|
sourceJson: JSON.stringify(a0)
|
|
};
|
|
break L16;
|
|
}
|
|
r0 = typeof a0 === "object" && uri ? uri.includes(".lottie") ? {
|
|
sourceDotLottieURI: uri
|
|
} : {
|
|
sourceURL: uri
|
|
} : typeof a0 === "number" ? {
|
|
sourceDotLottieURI: Image2.resolveAssetSource(a0).uri
|
|
} : void 0;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|