Skip to content

TextInput without multiline breaks double tap space bar "." shortcut on iOS #42792

@joshsmith

Description

@joshsmith

Description

When using TextInput without multiline on iOS, the "." Shortcut (double tapping the space bar will insert a period followed by space) functionality is broken.

Steps to reproduce

  1. Install the application with yarn ios
  2. Type into the first TextInput the characters: A new sentence
  3. Type into the second TextInput the characters: A new sentence
  4. Observe that the first TextInput has text that reads: A new sentence
  5. Observe that the second TextInput has text that reads: A new. Sentence

React Native Version

0.73.3

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 13.6.3
  CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  Memory: 29.21 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.10.0
    path: ~/.nvm/versions/node/v20.10.0/bin/node
  Yarn:
    version: 1.22.19
    path: ~/.yarn/bin/yarn
  npm:
    version: 10.2.3
    path: ~/.nvm/versions/node/v20.10.0/bin/npm
  Watchman:
    version: 2023.12.04.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.2
    path: /Users/joshsmith/.asdf/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK:
    API Levels:
      - "28"
    Build Tools:
      - 28.0.3
    Android NDK: Not Found
IDEs:
  Android Studio: 2021.3 AI-213.7172.25.2113.9123335
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 1.8.0_74
    path: /usr/bin/javac
  Ruby:
    version: 3.2.1
    path: /Users/joshsmith/.asdf/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.3
    wanted: 0.73.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

N/A

Reproducer

https://github.com/joshsmith/textinput-no-multiline-breaks-autocorrect

Screenshots and Videos

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-02-01.at.14.12.22.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions