From b8567ef07ac133958b348908c6d818fdece4f7f6 Mon Sep 17 00:00:00 2001 From: nerissa <83995211+nerissa666@users.noreply.github.com> Date: Sat, 8 Nov 2025 17:09:19 +0800 Subject: [PATCH] Update handling-text-input.md --- cndocs/handling-text-input.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cndocs/handling-text-input.md b/cndocs/handling-text-input.md index 6a61ad4ba1f..08219498268 100644 --- a/cndocs/handling-text-input.md +++ b/cndocs/handling-text-input.md @@ -5,7 +5,7 @@ title: 处理文本输入 [`TextInput`](textinput#content)是一个允许用户输入文本的[基础组件](intro-react-native-components)。它有一个名为`onChangeText`的属性,此属性接受一个函数,而此函数会在文本变化时被调用。另外还有一个名为`onSubmitEditing`的属性,会在文本被提交后(用户按下软键盘上的提交键)调用。 -假如我们要实现当用户输入时,实时将其以单词为单位翻译为另一种文字。我们假设这另一种文字来自某个吃货星球,只有一个单词: 🍕。所以"Hello there Bob"将会被翻译为"🍕🍕🍕"。 +假如我们要实现当用户输入时,实时将其以单词为单位翻译为另一种文字。我们假设这另一种文字来自某个吃货星球,只有一个单词: 🍕。所以"Hello there Bob"将会被翻译为"🍕🍕🍕🍕🍕🍕"。 ```SnackPlayer name=Handling%20Text%20Input import React, { useState } from 'react';