diff --git a/ReactVR/js/Views/Prefetch.js b/ReactVR/js/Views/Prefetch.js index 3d7f08847..1be702e33 100644 --- a/ReactVR/js/Views/Prefetch.js +++ b/ReactVR/js/Views/Prefetch.js @@ -54,7 +54,7 @@ export default class RCTPrefetch extends RCTBaseView { if (Array.isArray(uri)) { // Cubemap, check proper format - if (uri.length !== 6 || !uri[0].uri) { + if ((uri.length !== 6 && uri.length !== 12) || !uri[0].uri) { console.warn( 'Prefetch expected cubemap source in format [{uri: http..}, {uri: http..}, ... ]' ); @@ -82,7 +82,7 @@ export default class RCTPrefetch extends RCTBaseView { static uriKey(uri) { if (Array.isArray(uri)) { // Cubemap, check proper format - if (uri.length === 6) { + if (uri.length === 6 || uri.length === 12) { const urls = uri.map(RCTPrefetch.getUri); return urls.join(','); } else {