File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
4252BottomMenu . 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
4961export default BottomMenu ;
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments