var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollViewWithBackground=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _reactNativeGestureHandler=require("react-native-gesture-handler");var _reactNativePaper=require("react-native-paper");var _jsxFileName="/home/circleci/login-workflow/login-workflow/src/components/ScrollViewWithBackground.tsx";var _excluded=["topColor","bottomColor","children","theme"];var makeStyles=function makeStyles(spaceSize,topColor,bottomColor){return _reactNative.StyleSheet.create({scrollViewTopCover:{backgroundColor:topColor,position:'absolute',height:spaceSize,top:-spaceSize,left:0,right:0},scrollViewBottomCover:{backgroundColor:bottomColor,position:'absolute',height:spaceSize,bottom:-spaceSize,left:0,right:0}});};var ScrollViewWithBackground=function ScrollViewWithBackground(props){var topColor=props.topColor,bottomColor=props.bottomColor,children=props.children,customTheme=props.theme,other=(0,_objectWithoutProperties2.default)(props,_excluded);var theme=(0,_reactNativePaper.useTheme)(customTheme);var styles=makeStyles(500,topColor!==null&&topColor!==void 0?topColor:theme.colors.surface,bottomColor!==null&&bottomColor!==void 0?bottomColor:theme.colors.surface);return _react.default.createElement(_reactNativeGestureHandler.ScrollView,(0,_extends2.default)({},other,{__source:{fileName:_jsxFileName,lineNumber:60,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:styles.scrollViewTopCover,__source:{fileName:_jsxFileName,lineNumber:61,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:styles.scrollViewBottomCover,__source:{fileName:_jsxFileName,lineNumber:62,columnNumber:13}}),children);};exports.ScrollViewWithBackground=ScrollViewWithBackground;
//# sourceMappingURL=ScrollViewWithBackground.js.map