-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26849 from tienifr/fix/25709
fix: 25709 drop container does not add opacity to entire height of the drawer
- Loading branch information
Showing
6 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
import React, {PureComponent} from 'react'; | ||
import {View} from 'react-native'; | ||
import PropTypes from 'prop-types'; | ||
import styles from '../../styles/styles'; | ||
|
||
export default class HeaderGap extends PureComponent { | ||
const propTypes = { | ||
/** Styles to apply to the HeaderGap */ | ||
// eslint-disable-next-line react/forbid-prop-types | ||
styles: PropTypes.arrayOf(PropTypes.object), | ||
}; | ||
|
||
class HeaderGap extends PureComponent { | ||
render() { | ||
return <View style={styles.headerGap} />; | ||
return <View style={[styles.headerGap, ...this.props.styles]} />; | ||
} | ||
} | ||
|
||
HeaderGap.propTypes = propTypes; | ||
HeaderGap.defaultProps = { | ||
styles: [], | ||
}; | ||
export default HeaderGap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters