UNPKG

react-native-wishlist

Version:
23 lines (21 loc) 867 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ForEach = void 0; var _createTemplateComponent = require("../createTemplateComponent"); var _ForEachBase = require("./ForEachBase"); var _InflatorRepository = require("../InflatorRepository"); const ForEach = (0, _createTemplateComponent.createTemplateComponent)(_ForEachBase.ForEachBase, (item, props, inflatorId, pool, rootValue) => { 'worklet'; const subItems = props.items; const items = subItems.map(subItem => { const childItem = pool.getComponent(props.template); const childValue = subItem; const child = (0, _InflatorRepository.getUIInflatorRegistry)().useMappings(childItem, childValue, props.template, inflatorId, pool, rootValue); return child; }); item.setChildren(items); }); exports.ForEach = ForEach; //# sourceMappingURL=ForEach.js.map