调整菜单栏阴影

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

View File

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