首页 > 解决方案 > 为什么我的高程阴影在本机反应中位于错误的一侧?

问题描述

为什么我的高程阴影会出现在顶部而不是底部?实际上我宁愿它出现在底部。如何调整高程阴影出现的位置?

const autoStyles = StyleSheet.create({
    suggestionsWrapper: {
        marginTop: 35,
        marginBottom: 5,
        position:'absolute',
        display:'flex',
        left:0,
        top:15,
        backgroundColor:'#fff',
        width:'100%',
        zIndex:10000,
        height:150,
        elevation:5
    },
    suggestion: {
        top:0,
        left:0,
        height: 30,
        padding: 5,
        borderBottomColor: '#ddd',
        borderBottomWidth: 1
    },
    suggestionText: {
        fontSize: 15
    },
    input: {
        fontSize: 15
    },
    wrapper: {
        flex: 1
    }
});

在此处输入图像描述

标签: cssreactjsreact-native

解决方案


推荐阅读