diff --git a/mock.js b/mock.js index 8e77dfeb2..d75699682 100644 --- a/mock.js +++ b/mock.js @@ -50,11 +50,9 @@ class BottomSheetModal extends React.Component { render() { const { children: Content } = this.props; - return typeof Content === 'function' ? ( - - ) : ( - Content - ); + return typeof Content === 'function' + ? React.createElement(Content, { data: this.data }) + : Content; } }