Skip to content

Commit 62b6ccc

Browse files
authored
Merge pull request #3498 from huntie/update-react-native-imports
Update react-native deep imports for 0.79 compatibility
2 parents b46ed70 + 6edd7b0 commit 62b6ccc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/fiber/src/native/polyfills.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ export function polyfills() {
7777
const url = URL.createObjectURL(blob)
7878
URL.revokeObjectURL(url)
7979
} catch (_) {
80-
const BlobManager = require('react-native/Libraries/Blob/BlobManager.js')
80+
const BlobManagerModule = require('react-native/Libraries/Blob/BlobManager.js')
81+
const BlobManager = BlobManagerModule.default ?? BlobManagerModule
8182

8283
const createObjectURL = URL.createObjectURL
8384
URL.createObjectURL = function (blob: Blob): string {

0 commit comments

Comments
 (0)