Allow Heif/Heic Assets (#54640)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/54640

# Summary:
Trying to add heif/heic files to the ReactVRPlayground but they are not included to metro.

Codegen via

```
js1 build buckfiles
arc build
```

Insired by D58261501

Changelog:
[General][Added] - Bundle support for heic and heif files
___

overriding_review_checks_triggers_an_audit_and_retroactive_review
Oncall Short Name: vr_metacam

Reviewed By: lenaic, robhogan, javache

Differential Revision: D86807752

fbshipit-source-id: 0fd2271f46dc8bc5d568360c50dcd2db067923f6
This commit is contained in:
Anthony Bajoua authored and meta-codesync[bot] committed 2025-11-25 12:59:49 -08:00
1 parent f7145dc83a
commit f472ef980a
3 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ munge_underscores=true
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/packages/react-native/index.js'
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/packages/react-native/\1'
module.name_mapper='^@react-native/dev-middleware$' -> '<PROJECT_ROOT>/packages/dev-middleware'
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\|xml\|ktx\)$' -> '<PROJECT_ROOT>/packages/react-native/Libraries/Image/RelativeImageStub'
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\|xml\|ktx\|heic\|heif\)$' -> '<PROJECT_ROOT>/packages/react-native/Libraries/Image/RelativeImageStub'
module.system.haste.module_ref_prefix=m#
+2
View File
@@ -43,6 +43,8 @@ function getAndroidAssetSuffix(scale /*: number */) /*: string */ {
// See https://developer.android.com/guide/topics/resources/drawable-resource.html
const drawableFileTypes = new Set([
'gif',
'heic',
'heif',
'jpeg',
'jpg',
'ktx',
@@ -41,6 +41,8 @@ function getAndroidAssetSuffix(scale: number): string {
// See https://developer.android.com/guide/topics/resources/drawable-resource.html
const drawableFileTypes: Set<string> = new Set<string>([
'gif',
'heic',
'heif',
'jpeg',
'jpg',
'png',