mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 20:50:09 +00:00
Support loading XML assets (#45334)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45334 Adds support for the `xml` file extension as a loadable asset, and lets Flow treat the type signature as an image Changelog: [Internal] Reviewed By: robhogan Differential Revision: D58261501 fbshipit-source-id: b29cffee81d0438827529711e86267edd5d2a0f7
This commit is contained in:
parent
f0f9ac67f4
commit
0ad437390c
@ -62,7 +62,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\)$' -> '<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\)$' -> '<PROJECT_ROOT>/packages/react-native/Libraries/Image/RelativeImageStub'
|
||||
|
||||
suppress_type=$FlowIssue
|
||||
suppress_type=$FlowFixMe
|
||||
|
Loading…
Reference in New Issue
Block a user