mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 03:56:03 +00:00
0b09ed0667
- [react-packager] transformModulePath option is not actually required | Amjad Masad - Implement TextInput.clearButtonMode added by D1875684 on OSS fork + example | Tadeu Zagallo - [ReactNative] Use local CocoaPod config for ReactNative modules | Spencer Ahrens - [ReactNative] Pull out some OSS modules into separate libs | Spencer Ahrens - Enqueue events at 60fps + profiling helpers | Tadeu Zagallo
27 lines
584 B
JavaScript
27 lines
584 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule ix
|
|
*/
|
|
'use strict';
|
|
|
|
/**
|
|
* This function is used to mark string literals that are image paths. The
|
|
* return value is a blob of data that core image components understand how to
|
|
* render.
|
|
*
|
|
* The arguments to ix() must be string literals so that they can be parsed
|
|
* statically.
|
|
*
|
|
* @param string Image path to render
|
|
* @return object Data blob to be used by core UI components
|
|
*/
|
|
function ix(path) {
|
|
return {
|
|
uri: path,
|
|
isStatic: true,
|
|
};
|
|
}
|
|
|
|
module.exports = ix;
|