INNER CODE UNIT · JavaScript

resolveImagePath

nitaliano/react-native-mapbox-gl · javascript/utils/index.js:95

export function resolveImagePath(imageRef) {
  const res = resolveAssetSource(imageRef);
  return res.uri;
}

export function getIOSModuleName(moduleName) {
  if (moduleName.startsWith('RCT')) {
    return moduleName.substring(3);
  }
  return moduleName;
}

export function toJSONString(json = '') {
  return JSON.stringify(json);
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…