mirror of https://github.com/status-im/metro.git
Removed references to isStatic from the codebase
Summary: @public The legacy 'isStatic' property for image sources is no longer used anywhere in our codebase, but was still being generated by the packager and referenced in the JS in various places. This diff removes all the remaining references. Reviewed By: @frantic Differential Revision: D2531263 fb-gh-sync-id: 0bba0bb8473b1baa908ef7507cbf6d83efb0d9ee
This commit is contained in:
parent
67ab9dadb9
commit
44429dc4f4
|
@ -164,7 +164,6 @@ describe('Bundler', function() {
|
||||||
|
|
||||||
var imgModule_DEPRECATED = {
|
var imgModule_DEPRECATED = {
|
||||||
__packager_asset: true,
|
__packager_asset: true,
|
||||||
isStatic: true,
|
|
||||||
path: '/root/img/img.png',
|
path: '/root/img/img.png',
|
||||||
uri: 'img',
|
uri: 'img',
|
||||||
width: 25,
|
width: 25,
|
||||||
|
|
|
@ -263,7 +263,6 @@ class Bundler {
|
||||||
]).then(([dimensions, id]) => {
|
]).then(([dimensions, id]) => {
|
||||||
const img = {
|
const img = {
|
||||||
__packager_asset: true,
|
__packager_asset: true,
|
||||||
isStatic: true,
|
|
||||||
path: module.path,
|
path: module.path,
|
||||||
uri: id.replace(/^[^!]+!/, ''),
|
uri: id.replace(/^[^!]+!/, ''),
|
||||||
width: dimensions.width / module.resolution,
|
width: dimensions.width / module.resolution,
|
||||||
|
|
Loading…
Reference in New Issue