0

我想在此按钮正上方添加一个文本输入字段,但我不知道该怎么做

const styles = StyleSheet.create({
  button: {
    marginTop: 400,
    justifyContent: 'center',
    alignItems: 'center'
  },
  textInput: {
    borderWidth: 2,
    borderRadius: 6,
    width: 100,
    alignItems: 'center',

  }
});

图片:

在此处输入图像描述

4

1 回答 1

0

您在按钮上有“marginTop:400”。

于 2021-06-18T18:59:17.390 回答