【发布时间】:2020-06-22 11:51:48
【问题描述】:
我正在使用 native-base 的内容进行滚动,并且我希望在滚动时在底部有一个固定按钮。如何在滚动视图项目上显示固定按钮的阴影 like this。
我的代码
<Container>
<Content>
...
</Content>
<View style={styles.footer}>
<Button style={styles.footerBtn}>
<Text>{strings('consultant_profile.book_an_appointment')}</Text>
</Button>
</View>
</Container>
//Css
footer: {
padding: 20,
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 2,
},
shadowOpacity: 0.23,
shadowRadius: 2.62,
elevation: 4,
},
【问题讨论】:
标签: react-native css-position native-base box-shadow