Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 iOS: Dictation Mic doesn't work properly with TextInput multiline #37991

Open
imransilvake opened this issue Jun 21, 2023 · 15 comments
Open
Labels
Accessibility Component: TextInput Related to the TextInput component. Needs: Triage 🔍 Never gets stale Prevent those issues and PRs from getting stale Platform: iOS iOS applications.

Comments

@imransilvake
Copy link

Description

I tried using Dictation mic on iOS with TextInput. It works fine when multiline is OFF. But it doesn't work if multiline is set to true. It paste the text to the input but as soon as I start to type, it removed the dictation text.

React Native Version

0.71.8

Output of npx react-native info

System:
    OS: macOS 13.4
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
    Memory: 1.13 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - /usr/local/opt/node@18/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.5.1 - /usr/local/opt/node@18/bin/npm
    Watchman: 2023.05.15.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.12.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.71.8 => 0.71.8 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

Use the following Input and play with the dictation mic.

const [message, setMessage] = useState('');
<TextInput onChangeText={setMessage} value={message} multiline={true} />

Snack, code example, screenshot, or link to a repository

Minimal reproduction case is to just use TextInput with multiline set to True

<TextInput onChangeText={setMessage} value={message} multiline={true} />
@github-actions
Copy link

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.71.11. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@github-actions github-actions bot added Component: TextInput Related to the TextInput component. Platform: iOS iOS applications. labels Jun 21, 2023
@imransilvake imransilvake changed the title iOS: Dictation Mic doesn't work properly with TextInput multiline 🐞 iOS: Dictation Mic doesn't work properly with TextInput multiline Jun 21, 2023
@imransilvake
Copy link
Author

upgraded to 0.71.11 but that didn't solved the issue.

@rodrigoeidelvein
Copy link

Same issue happening here, we suspect that it's due to this change: a804c0f

@hyochan
Copy link
Contributor

hyochan commented Jun 24, 2023

DICTATION.MIC.mp4

Our client reported this issue with above recording. This only happens in real device with multiline.

@hyochan
Copy link
Contributor

hyochan commented Jun 24, 2023

Same issue happening here, we suspect that it's due to this change: a804c0f

I can confirm that reverting this removes the problem!

@sonorousduck
Copy link

sonorousduck commented Jul 11, 2023

Same issue happening here, we suspect that it's due to this change: a804c0f

I can confirm that reverting this removes the problem!

Seeing this issue on 0.71.11. Which version of React Native did you revert to in order to avoid this problem?

@write2lloyd
Copy link

This issue seems related to
#37958

I can confirm that the issue is fixed in 0.72.3

@github-actions github-actions bot added the Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. label Jul 19, 2023
@cortinico cortinico removed the Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. label Jul 20, 2023
Copy link

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 17, 2024
@fabOnReact
Copy link
Contributor

Do you still experience this issue?

I have four years of experience maintaining facebook/react-native and I specialize in the Text and TextInput components. I currently have 58 facebook/react-native PRs.

If you still experience this issue, I will make sure to prepare a patched release with the fix.

Thanks a lot

@github-actions github-actions bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 18, 2024
@deepnothing
Copy link

i am still having this issue - RN 0.71.8

@Manouli
Copy link

Manouli commented Mar 8, 2024

This is still an issue with RN 0.73.5

@burya4ok
Copy link

burya4ok commented Mar 24, 2024

I'm still have this issue on iOS with inline dictation. And it does not work only with multiline TextField @fabOnReact

@react-native-bot
Copy link
Collaborator

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@react-native-bot react-native-bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Sep 21, 2024
@react-native-bot
Copy link
Collaborator

This issue was closed because it has been stalled for 7 days with no activity.

@react-native-bot react-native-bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2024
@gaearon
Copy link
Collaborator

gaearon commented Oct 6, 2024

afaik this has not been fixed

@gaearon gaearon reopened this Oct 6, 2024
@react-native-bot react-native-bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Oct 6, 2024
@cortinico cortinico added the Never gets stale Prevent those issues and PRs from getting stale label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accessibility Component: TextInput Related to the TextInput component. Needs: Triage 🔍 Never gets stale Prevent those issues and PRs from getting stale Platform: iOS iOS applications.
Projects
None yet
Development

No branches or pull requests