调整菜单栏阴影

This commit is contained in:
lyswhut 2021-12-21 13:14:27 +08:00
parent 47a169e7f5
commit b3e364542f
2 changed files with 4 additions and 4 deletions

View File

@ -20,11 +20,11 @@ const styles = StyleSheet.create({
},
menu: {
position: 'absolute',
borderWidth: StyleSheet.hairlineWidth,
// borderWidth: StyleSheet.hairlineWidth,
borderColor: 'lightgray',
borderRadius: 2,
backgroundColor: 'white',
elevation: 1,
elevation: 3,
},
menuItem: {
paddingLeft: 10,
@ -92,7 +92,7 @@ const Menu = ({
// console.log(menuStyle)
return (
<View style={{ ...styles.menu, ...menuStyle, backgroundColor: theme.primary }} onStartShouldSetResponder={() => true}>
<View style={{ ...styles.menu, ...menuStyle }} onStartShouldSetResponder={() => true}>
<Animated.ScrollView keyboardShouldPersistTaps={'always'}>
{
menus.map((menu, index) => (

View File

@ -13,7 +13,7 @@ const styles = StyleSheet.create({
// alignItems: 'center',
},
modalView: {
elevation: 3,
elevation: 6,
flexGrow: 0,
flexShrink: 1,
},