Text Input not working inside CopilotStep

未关闭
#209 6 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
react-native, typescript
领域
mobile

调研方向

使用报告中的 CopilotStep 和 TextInput 示例,并使用列出的 react-native-copilot 2.5.1 和 React Native 0.63.4 版本,在 Android 上复现该问题。跟踪 CopilotStep/TextInput 的交互,并验证多行输入在完成时能够顺畅地接受空格和多个单词。

由索引模型根据 Issue 内容生成。

描述

Current Behavior
When I have a text input inside a copilot step, i can only enter one word at a time

Input Code

<CopilotStep
    order={5}
    text={translate("home.tutorial.step5")}
    name="description">
    <CopilotView style={styles.locationBox}>
      <Text style={styles.locationTitle}>
        {translate("home.description")}
      </Text>
      <View style={styles.textAreaContainer}>
        <TextInput
          style={styles.messageArea}
          multiline
          numberOfLines={5}
          placeholder={translate("home.enterDescription")}
          value={description}
          onChangeText={onChangeDescription}
        />
      </View>
    </CopilotView>
  </CopilotStep>

Expected behavior/code
Should be able to type smoothly.

Environment

  • Device: Pixel 3a Simulator
  • OS: Android
  • react-native-copilot: 2.5.1
  • react-native: 0.63.4
  • react-native-svg: 12.1.0

Possible Solution

Additional context/Screenshots

https://user-images.githubusercontent.com/46340173/105667485-4a930380-5f16-11eb-8a12-3fddfebbad6a.mp4

主要语言
TypeScript
星标
2.4k
派生
425
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mohebifar/react-native-copilot 的其他 Issue

查看 mohebifar/react-native-copilot 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。