d229cfe927ff8b5a35fae9c5ccc7b79e.json 1.75 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;var _NativeMethodsMixin=_interopRequireDefault(require(\"../NativeMethodsMixin\"));var applyNativeMethods=function applyNativeMethods(Component){Object.keys(_NativeMethodsMixin.default).forEach(function(method){if(!Component.prototype[method]){Component.prototype[method]=_NativeMethodsMixin.default[method];}});return Component;};var _default=applyNativeMethods;exports.default=_default;","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-web/dist/modules/applyNativeMethods/index.js"],"names":["applyNativeMethods","Component","Object","keys","NativeMethodsMixin","forEach","method","prototype"],"mappings":"mKAQA,iFAEA,GAAIA,CAAAA,kBAAkB,CAAG,QAASA,CAAAA,kBAAT,CAA4BC,SAA5B,CAAuC,CAC9DC,MAAM,CAACC,IAAP,CAAYC,2BAAZ,EAAgCC,OAAhC,CAAwC,SAAUC,MAAV,CAAkB,CACxD,GAAI,CAACL,SAAS,CAACM,SAAV,CAAoBD,MAApB,CAAL,CAAkC,CAChCL,SAAS,CAACM,SAAV,CAAoBD,MAApB,EAA8BF,4BAAmBE,MAAnB,CAA9B,CACD,CACF,CAJD,EAKA,MAAOL,CAAAA,SAAP,CACD,CAPD,C,aASeD,kB","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport NativeMethodsMixin from '../NativeMethodsMixin';\n\nvar applyNativeMethods = function applyNativeMethods(Component) {\n  Object.keys(NativeMethodsMixin).forEach(function (method) {\n    if (!Component.prototype[method]) {\n      Component.prototype[method] = NativeMethodsMixin[method];\n    }\n  });\n  return Component;\n};\n\nexport default applyNativeMethods;"]},"metadata":{},"sourceType":"script"}