/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/rn-dominant-color@1.7.2/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import{NativeModules,Platform}from"react-native";const{RNDominantColor:RNDominantColor}=NativeModules;export const getColorFromURL=o=>"ios"==Platform.OS?new Promise(((r,a)=>{RNDominantColor.getColorFromURL(o,((o,a,t,n)=>{r({primary:o,secondary:a,background:t,detail:n})}))})):"android"==Platform.OS?new Promise(((r,a)=>{RNDominantColor.colorsFromUrl(o).then((o=>{r({primary:o.dominantColor,secondary:o.averageColor,background:o.lightVibrantColor,detail:o.vibrantColor})})).catch((o=>{a({primary:"#00000000",secondary:"#00000000",background:"#00000000",detail:"#00000000"})}))})):void 0;
//# sourceMappingURL=/sm/185c196a9cf6441f2f49c0c9898168806662c8f89722c5439d8f821df7fab159.map