React native to do a chat interface, how to transfer the value of the input box to the page

clipboard.png

is when you click to send, how can the value of the input box appear on the page as usual?

Aug.04,2021

the above conversation should be an array object, for example:

[{
    role: 'A',
    content: ",A"
},{
    role: 'B',
    content: "B"
}]

you just need to build the same object,

{
    role: 'B',
    content: ''
}

push to this array, time to talk and update


you can update via setState. Let's take a look at this article
https://www.cnblogs.com/xiaoy.

.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e748fa-4d9b8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e748fa-4d9b8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?