react-native - how can get and list entered value in TextInput on react-native?
问题描述
ı want to save and list values that entered in TextInput on same screen react-native.How can ı make dont know. ı want an example code as image enter image description here
解决方案
- 使用平面列表和数组状态。
- 关于 TextInput 更新状态数组的变化
- 添加提示额外={this. state} 在 flatlist 中,每当状态更改时都会更新 flatlist。请参阅 react native doc 中的 Flatlist。这很简单
推荐阅读
- javascript - 为什么使用 schedule/onRun 触发器运行相同的 Firebase 函数所需的时间是 HTTP onRequest 触发器的 10 倍?
- c - 无法添加到链表的标题
- java - selenium xapth 中的正则表达式
- php - Kohana 为特定 url 提供多个动态路由
- node.js - Firebase firestore 从集合文档中获取数据,然后在一个数组中获取子集合文档
- javascript - Axios 发布请求在 React JS 中不起作用
- r - R用ggplot2绘制数据框内存不足
- c# - 更新客户记录
- variables - 在 Tcl 中将变量从较低的 proc 传递到较高的 proc
- r - 应用对数刻度时的 R 选择性有限数误差