Skip to content

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

Open

Description

@imransilvake

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} />

Activity

  1. github-actions commented on Jun 21, 2023

    @github-actions
    ⚠️ 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.
  2. changed the title [-]iOS: Dictation Mic doesn't work properly with TextInput multiline[/-] [+]🐞 iOS: Dictation Mic doesn't work properly with TextInput multiline[/+] on Jun 21, 2023
  3. imransilvake commented on Jun 21, 2023

    @imransilvake
    Author

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

  4. rodrigoeidelvein commented on Jun 21, 2023

    @rodrigoeidelvein

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

  5. hyochan commented on Jun 24, 2023

    @hyochan
    Contributor
    DICTATION.MIC.mp4

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

  6. hyochan commented on Jun 24, 2023

    @hyochan
    Contributor

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

    I can confirm that reverting this removes the problem!

  7. sonorousduck commented on Jul 11, 2023

    @sonorousduck

    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?

  8. write2lloyd commented on Jul 19, 2023

    @write2lloyd

    This issue seems related to
    #37958

    I can confirm that the issue is fixed in 0.72.3

  9. added
    Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.
    on Jul 19, 2023
  10. 2 remaining items

  11. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Jan 17, 2024
  12. fabOnReact commented on Jan 17, 2024

    @fabOnReact
    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

  13. removed
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Jan 18, 2024
  14. deepnothing commented on Feb 1, 2024

    @deepnothing

    i am still having this issue - RN 0.71.8

  15. Manouli commented on Mar 8, 2024

    @Manouli

    This is still an issue with RN 0.73.5

  16. burya4ok commented on Mar 24, 2024

    @burya4ok

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

  17. react-native-bot commented on Sep 21, 2024

    @react-native-bot
    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.

  18. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Sep 21, 2024
  19. react-native-bot commented on Sep 28, 2024

    @react-native-bot
    Collaborator

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

  20. gaearon commented on Oct 6, 2024

    @gaearon
    Collaborator

    afaik this has not been fixed

  21. reopened this on Oct 6, 2024
  22. removed
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Oct 6, 2024
  23. levani-k commented on Jan 15, 2025

    @levani-k

    I still have this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions