diff --git a/react/features/base/dialog/components/native/BottomSheet.js b/react/features/base/dialog/components/native/BottomSheet.js index 0ef7e0c36..7d11cf467 100644 --- a/react/features/base/dialog/components/native/BottomSheet.js +++ b/react/features/base/dialog/components/native/BottomSheet.js @@ -61,11 +61,7 @@ class BottomSheet extends PureComponent { styles.sheetItemContainer, _styles.sheet ] }> - - { this._getWrappedContent() } - + { this._getWrappedContent() } @@ -73,24 +69,32 @@ class BottomSheet extends PureComponent { } /** - * Wraps the content when needed (iOS 11 and above), or just returns the original children. + * Wraps the content when needed (iOS 11 and above), or just returns the original content. * * @returns {React$Element} */ _getWrappedContent() { + const content = ( + + { this.props.children } + + ); + if (Platform.OS === 'ios') { const majorVersionIOS = parseInt(Platform.Version, 10); if (majorVersionIOS > 10) { return ( - { this.props.children } + { content } ); } } - return this.props.children; + return content; } }