mohebifar / mohebifar/react-native-copilot

Text Input not working inside CopilotStep

Open
#209 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.4k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Android using the CopilotStep and TextInput example in the report with the listed react-native-copilot 2.5.1 and React Native 0.63.4 versions. Trace the CopilotStep/TextInput interaction and verify that multiline input accepts spaces and multiple words smoothly when done.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.