2015-08-27 04:30:46 +03:00
|
|
|
/**
|
2018-09-12 01:27:47 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2015-08-27 04:30:46 +03:00
|
|
|
*
|
2018-02-17 05:24:55 +03:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2015-08-27 04:30:46 +03:00
|
|
|
*
|
2018-05-11 05:06:46 +03:00
|
|
|
* @format
|
2018-06-20 10:35:29 +03:00
|
|
|
* @flow strict
|
2015-08-27 04:30:46 +03:00
|
|
|
*/
|
2018-05-11 05:06:46 +03:00
|
|
|
|
2015-08-27 04:30:46 +03:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
// This is a stub for flow to make it understand require('./icon.png')
|
2017-11-29 14:00:49 +03:00
|
|
|
// See metro/src/Bundler/index.js
|
2015-08-27 04:30:46 +03:00
|
|
|
|
2019-05-08 18:44:25 +03:00
|
|
|
const AssetRegistry = require('./AssetRegistry');
|
2015-08-27 04:30:46 +03:00
|
|
|
|
|
|
|
module.exports = AssetRegistry.registerAsset({
|
|
|
|
__packager_asset: true,
|
|
|
|
fileSystemLocation: '/full/path/to/directory',
|
|
|
|
httpServerLocation: '/assets/full/path/to/directory',
|
|
|
|
width: 100,
|
|
|
|
height: 100,
|
|
|
|
scales: [1, 2, 3],
|
|
|
|
hash: 'nonsense',
|
|
|
|
name: 'icon',
|
|
|
|
type: 'png',
|
|
|
|
});
|