RelativeImageStub.js 685 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow strict
  9. */
  10. 'use strict';
  11. // This is a stub for flow to make it understand require('./icon.png')
  12. // See metro/src/Bundler/index.js
  13. const AssetRegistry = require('./AssetRegistry');
  14. module.exports = (AssetRegistry.registerAsset({
  15. __packager_asset: true,
  16. fileSystemLocation: '/full/path/to/directory',
  17. httpServerLocation: '/assets/full/path/to/directory',
  18. width: 100,
  19. height: 100,
  20. scales: [1, 2, 3],
  21. hash: 'nonsense',
  22. name: 'icon',
  23. type: 'png',
  24. }): number);