UNPKG

react-native-pager-view

Version:
19 lines (18 loc) 607 B
"use strict"; import React, { Children } from 'react'; import { StyleSheet, View } from 'react-native'; import { jsx as _jsx } from "react/jsx-runtime"; export const childrenWithOverriddenStyle = (children, _pageMargin = 0) => { return Children.map(children, child => { const element = child; return /*#__PURE__*/_jsx(View, { style: StyleSheet.absoluteFill, collapsable: false, children: /*#__PURE__*/React.cloneElement(element, { ...element.props, style: [element.props.style, StyleSheet.absoluteFill] }) }); }); }; //# sourceMappingURL=utils.js.map