我使用react-native而且我有天赋聊天消息系统(Bot类型),其中机器人问我问题,我会给他们答案。我的要求是我必须给出答案桌子形式的聊天信使只显示3行。但是,在我的senirio中,我试图像这样使用这个代码
{
question: "Please fill up the ASCI mining hardware details here.",
responseType: "table",
id: "miner",
include: ["miner"],
columns: [
{
label: "First name",
id: "firstName",
responseLength: 60,
responseType: ["string"]
},
{
label: "Last name",
id: "lastName",
responseLength: 60,
responseType: ["string"]
},
{
label: "NRIC/FIN or Passport",
id: "idNumber",
responseType: "string"
},
{
label: "Date of birth",
id: "DOB",
responseType: "date",
pastOnly: true
},
{
label: "Gender",
id: "gender",
responseType: ["choice", "number"],
choices: [{ label: "Male", value: 1 }, { label: "Female", value: 2 }]
},
{
label: "Relationship",
id: "relationship",
responseType: ["choice", "number"],
choices: [{ label: "Spouse", value: 1 }, { label: "Child", value: 2 }]
}
]
},
所以这会弹出一个这样的表。但它对我不起作用