mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 06:04:15 +00:00
ca58e0af82
Summary: This removes support for `require('image!…')`, which has been deprecated for a long time. It is still possible to use images that are already bundled by the native app using the `nativeImageSource` module. Check http://facebook.github.io/react-native/docs/images.html for detailed documentation. Reviewed By: matryoshcow Differential Revision: D4231208 fbshipit-source-id: 05ec4c1ca0fabdc3fbb652f8ad1acdf240a67955
25 lines
685 B
JSON
25 lines
685 B
JSON
{
|
|
"haste": {
|
|
"defaultPlatform": "ios",
|
|
"platforms": ["android", "ios"],
|
|
"providesModuleNodeModules": [
|
|
"react-native"
|
|
]
|
|
},
|
|
"moduleNameMapper": {
|
|
"^[./a-zA-Z0-9$_-]+\\.(bmp|gif|jpg|jpeg|png|psd|svg|webp)$": "RelativeImageStub",
|
|
"^React$": "<rootDir>node_modules/react"
|
|
},
|
|
"modulePathIgnorePatterns": [
|
|
"<rootDir>/node_modules/react-native/Libraries/react-native/",
|
|
"<rootDir>/node_modules/react-native/packager/"
|
|
],
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!(jest-)?react-native|react-clone-referenced-element)"
|
|
],
|
|
"setupFiles": [
|
|
"<rootDir>/node_modules/react-native/jest/setup.js"
|
|
],
|
|
"testEnvironment": "node"
|
|
}
|