diff --git a/src/components/grid/Scrollable.js b/src/components/grid/Scrollable.js index 06af948..00998e1 100644 --- a/src/components/grid/Scrollable.js +++ b/src/components/grid/Scrollable.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { StyleSheet, ScrollView } from 'react-native'; +import { StyleSheet, ScrollView, ScrollViewProps } from 'react-native'; const styles = StyleSheet.create({ stretch: { @@ -13,11 +13,12 @@ const styles = StyleSheet.create({ /** * Component for wrapping scrollable content. * - * @type {React.StatelessComponent<{stretch: boolean, horizontal: boolean, children: any}>} + * @type {React.StatelessComponent<{stretch: boolean, horizontal: boolean, children: any, props: ScrollViewProps}>} */ /* eslint-enable */ -const Scrollable = ({ children, stretch, horizontal }) => ( +const Scrollable = ({ children, stretch, horizontal, ...props }) => ( @@ -33,11 +34,13 @@ Scrollable.propTypes = { ]).isRequired, stretch: PropTypes.bool, horizontal: PropTypes.bool, + props: ScrollViewProps, }; Scrollable.defaultProps = { stretch: false, horizontal: false, + props: {}, }; export default Scrollable; diff --git a/src/components/grid/index.js b/src/components/grid/index.js index 6c0d406..2cf58c8 100644 --- a/src/components/grid/index.js +++ b/src/components/grid/index.js @@ -198,6 +198,7 @@ class Grid extends Component { return (