code: function normalizeUrl(url, pathStripRe) {
    if (url.indexOf('/') !== -1) {
      return url.replace(/^file\:\/\//, '').replace(pathStripRe, '');
    } else {
      return '/' + url;
    }
  }
docs: Strip device-specific IDs from React Native file:// paths