@react-three/fiber 8.15.8 → 8.15.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -363,7 +363,6 @@ function polyfills() {
|
|
|
363
363
|
};
|
|
364
364
|
const createFromParts = BlobManager.createFromParts;
|
|
365
365
|
BlobManager.createFromParts = function (parts, options) {
|
|
366
|
-
var _NativeModules$BlobMo2;
|
|
367
366
|
parts = parts.map(part => {
|
|
368
367
|
if (part instanceof ArrayBuffer || ArrayBuffer.isView(part)) {
|
|
369
368
|
part = base64Js.fromByteArray(new Uint8Array(part));
|
|
@@ -371,13 +370,17 @@ function polyfills() {
|
|
|
371
370
|
return part;
|
|
372
371
|
});
|
|
373
372
|
const blob = createFromParts(parts, options);
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
373
|
+
|
|
374
|
+
// Always enable slow but safe path for iOS (previously for Android unauth)
|
|
375
|
+
// https://github.com/pmndrs/react-three-fiber/issues/3075
|
|
376
|
+
// if (!NativeModules.BlobModule?.BLOB_URI_SCHEME) {
|
|
377
|
+
blob.data._base64 = '';
|
|
378
|
+
for (const part of parts) {
|
|
379
|
+
var _data$_base, _data;
|
|
380
|
+
blob.data._base64 += (_data$_base = (_data = part.data) == null ? void 0 : _data._base64) != null ? _data$_base : part;
|
|
380
381
|
}
|
|
382
|
+
// }
|
|
383
|
+
|
|
381
384
|
return blob;
|
|
382
385
|
};
|
|
383
386
|
}
|
|
@@ -363,7 +363,6 @@ function polyfills() {
|
|
|
363
363
|
};
|
|
364
364
|
const createFromParts = BlobManager.createFromParts;
|
|
365
365
|
BlobManager.createFromParts = function (parts, options) {
|
|
366
|
-
var _NativeModules$BlobMo2;
|
|
367
366
|
parts = parts.map(part => {
|
|
368
367
|
if (part instanceof ArrayBuffer || ArrayBuffer.isView(part)) {
|
|
369
368
|
part = base64Js.fromByteArray(new Uint8Array(part));
|
|
@@ -371,13 +370,17 @@ function polyfills() {
|
|
|
371
370
|
return part;
|
|
372
371
|
});
|
|
373
372
|
const blob = createFromParts(parts, options);
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
373
|
+
|
|
374
|
+
// Always enable slow but safe path for iOS (previously for Android unauth)
|
|
375
|
+
// https://github.com/pmndrs/react-three-fiber/issues/3075
|
|
376
|
+
// if (!NativeModules.BlobModule?.BLOB_URI_SCHEME) {
|
|
377
|
+
blob.data._base64 = '';
|
|
378
|
+
for (const part of parts) {
|
|
379
|
+
var _data$_base, _data;
|
|
380
|
+
blob.data._base64 += (_data$_base = (_data = part.data) == null ? void 0 : _data._base64) != null ? _data$_base : part;
|
|
380
381
|
}
|
|
382
|
+
// }
|
|
383
|
+
|
|
381
384
|
return blob;
|
|
382
385
|
};
|
|
383
386
|
}
|
|
@@ -3,7 +3,7 @@ export { t as ReactThreeFiber, x as _roots, v as act, o as addAfterEffect, n as
|
|
|
3
3
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
|
-
import { PanResponder, PixelRatio, View, StyleSheet, Platform,
|
|
6
|
+
import { PanResponder, PixelRatio, View, StyleSheet, Platform, Image, NativeModules } from 'react-native';
|
|
7
7
|
import { GLView } from 'expo-gl';
|
|
8
8
|
import { FiberProvider, useContextBridge } from 'its-fine';
|
|
9
9
|
import { Asset } from 'expo-asset';
|
|
@@ -338,7 +338,6 @@ function polyfills() {
|
|
|
338
338
|
};
|
|
339
339
|
const createFromParts = BlobManager.createFromParts;
|
|
340
340
|
BlobManager.createFromParts = function (parts, options) {
|
|
341
|
-
var _NativeModules$BlobMo2;
|
|
342
341
|
parts = parts.map(part => {
|
|
343
342
|
if (part instanceof ArrayBuffer || ArrayBuffer.isView(part)) {
|
|
344
343
|
part = fromByteArray(new Uint8Array(part));
|
|
@@ -346,13 +345,17 @@ function polyfills() {
|
|
|
346
345
|
return part;
|
|
347
346
|
});
|
|
348
347
|
const blob = createFromParts(parts, options);
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
348
|
+
|
|
349
|
+
// Always enable slow but safe path for iOS (previously for Android unauth)
|
|
350
|
+
// https://github.com/pmndrs/react-three-fiber/issues/3075
|
|
351
|
+
// if (!NativeModules.BlobModule?.BLOB_URI_SCHEME) {
|
|
352
|
+
blob.data._base64 = '';
|
|
353
|
+
for (const part of parts) {
|
|
354
|
+
var _data$_base, _data;
|
|
355
|
+
blob.data._base64 += (_data$_base = (_data = part.data) == null ? void 0 : _data._base64) != null ? _data$_base : part;
|
|
355
356
|
}
|
|
357
|
+
// }
|
|
358
|
+
|
|
356
359
|
return blob;
|
|
357
360
|
};
|
|
358
361
|
}
|