- Hands-On Design Patterns with React Native
- Mateusz Grzesiukiewicz
- 156字
- 2021-08-13 15:13:01
Building forms
In this section, we will explore how we can handle text input from users. Traditional means of collecting input from so-called forms is divided into two major ways: controlled and uncontrolled. In a native environment, this means either handling any keypress on the React Native side (controlled input), or letting it be handled on the native system level and collecting data in React on demand (uncontrolled input).
If you come from a web development background, please note that, at the time of writing this book, there is no form component, and I don't see it coming. There are also limitations to refs and what you can do with them. For instance, you cannot ask a ref to a TextInput for its current value. Please follow the following two subsections for more details. You can also use custom libraries, but I will not discuss such solutions here as these tend to change often.
推薦閱讀
- 碼上行動:零基礎學會Python編程(ChatGPT版)
- Learning Neo4j 3.x(Second Edition)
- C#程序設計
- C#程序設計基礎:教程、實驗、習題
- Java EE 7 Performance Tuning and Optimization
- Visual Basic程序設計實踐教程
- C語言程序設計實驗指導 (第2版)
- Access 2010數據庫應用技術(第2版)
- C# Multithreaded and Parallel Programming
- Geospatial Development By Example with Python
- Natural Language Processing with Python Quick Start Guide
- Neo4j 3.x入門經典
- Python 快速入門(第3版)
- MySQL數據庫應用實戰教程(慕課版)
- ArcPy and ArcGIS(Second Edition)