【发布时间】:2019-09-12 16:59:52
【问题描述】:
我有 2 个这样的按钮位置:
我想删除两个按钮之间的空间,让它们并排成一排,如下所示:
我怎样才能做到这一点?
我的代码:
<View
style={{
flexDirection: "row",
alignItems: "stretch",
justifyContent: "center",
marginTop: 10
}}
>
<View style={{ flex: 1 }}>
<Button title="Button 1" />
</View>
<View style={{ flex: 1 }}>
<Button title="Button 2" />
</View>
</View>
我正在使用import { Button } from "react-native-elements";
【问题讨论】:
标签: react-native react-native-elements react-native-button