bottom-sheet: tweak UI

- re-add thepand icon, shaped like a pill
- round top corners
This commit is contained in:
Saúl Ibarra Corretgé
2020-03-23 09:37:35 +01:00
committed by Saúl Ibarra Corretgé
parent 5148c81dd8
commit 579d08e27e
6 changed files with 66 additions and 4 deletions

View File

@@ -44,7 +44,12 @@ type Props = {
/**
* Callback to be attached to the custom swipe event of the BottomSheet.
*/
onSwipe?: Function
onSwipe?: Function,
/**
* Function to render a bottom sheet header element, if necessary.
*/
renderHeader: ?Function
};
/**
@@ -75,7 +80,7 @@ class BottomSheet extends PureComponent<Props> {
* @returns {ReactElement}
*/
render() {
const { _styles } = this.props;
const { _styles, renderHeader } = this.props;
return (
<SlidingView
@@ -88,6 +93,7 @@ class BottomSheet extends PureComponent<Props> {
<View
pointerEvents = 'box-none'
style = { styles.sheetAreaCover } />
{ renderHeader && renderHeader() }
<SafeAreaView
style = { [
styles.sheetItemContainer,

View File

@@ -172,6 +172,12 @@ ColorSchemeRegistry.register('BottomSheet', {
underlayColor: ColorPalette.overflowMenuItemUnderlay
},
expandIcon: {
color: schemeColor('icon'),
fontSize: 48,
opacity: 0.8
},
/**
* Bottom sheet's base style.
*/