我连续有 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";