Skip to content

Commit 4bb5f40

Browse files
committed
shadow container height and width are separated now
1 parent 4c95520 commit 4bb5f40

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

lib/src/components/bottomMenu/BottomMenu.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ class BottomMenu extends Component {
1515
children,
1616
shadowStyle,
1717
shadowColor,
18-
backgroundColor
18+
backgroundColor,
19+
shadowContainerWidth,
20+
shadowContainerHeight
1921
} = this.props;
2022
return (
2123
<Androw
@@ -24,7 +26,13 @@ class BottomMenu extends Component {
2426
shadowStyle || _shadowStyle(shadowColor)
2527
]}
2628
>
27-
<View style={mainStyle(height, width, backgroundColor)}>
29+
<View
30+
style={mainStyle(
31+
shadowContainerHeight,
32+
shadowContainerWidth,
33+
backgroundColor
34+
)}
35+
>
2836
{children}
2937
</View>
3038
</Androw>
@@ -36,14 +44,18 @@ BottomMenu.propTypes = {
3644
height: PropTypes.number,
3745
width: PropTypes.number,
3846
shadowColor: PropTypes.string,
39-
backgroundColor: PropTypes.string
47+
backgroundColor: PropTypes.string,
48+
shadowContainerWidth: PropTypes.number,
49+
shadowContainerHeight: PropTypes.number
4050
};
4151

4252
BottomMenu.defaultProps = {
4353
height: 75,
4454
shadowColor: "#000",
4555
backgroundColor: "white",
46-
width: ScreenWidth * 0.75
56+
width: ScreenWidth * 0.75,
57+
shadowContainerHeight: 75,
58+
shadowContainerWidth: ScreenWidth * 0.75
4759
};
4860

4961
export default BottomMenu;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-bottom-menu",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Fully customizable and dynamic Bottom Menu for React Native.",
55
"keywords": [
66
"bottom",

0 commit comments

Comments
 (0)