2015-08-27 01:30:46 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-17 02:24:55 +00: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 01:30:46 +00:00
|
|
|
*
|
2018-05-11 02:06:46 +00:00
|
|
|
* @format
|
2015-08-27 01:30:46 +00:00
|
|
|
* @flow
|
|
|
|
*/
|
2018-05-11 02:06:46 +00:00
|
|
|
|
2015-08-27 01:30:46 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
// This is a stub for flow to make it understand require('./icon.png')
|
2017-11-29 11:00:49 +00:00
|
|
|
// See metro/src/Bundler/index.js
|
2015-08-27 01:30:46 +00:00
|
|
|
|
2018-05-10 22:44:52 +00:00
|
|
|
const AssetRegistry = require('AssetRegistry');
|
2015-08-27 01:30:46 +00: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',
|
|
|
|
});
|