UNPKG

@ray-js/components

Version:

Ray basic components

19 lines 744 B
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; const _excluded = ["style"]; import * as React from 'react'; import { inlineStyle } from '@ray-js/framework-shared'; import { ScrollView as RemaxScrollView } from '@ray-core/wechat'; import { ScrollView as ScrollViewDef } from '@ray-js/adapter'; const ScrollView = props => { const { style } = props, restProps = _objectWithoutProperties(props, _excluded); return /*#__PURE__*/React.createElement(RemaxScrollView, _extends({ style: inlineStyle(style), enhanced: true }, restProps)); }; ScrollView.defaultProps = ScrollViewDef.defaultProps; export default ScrollView;