Skip to content

[iOS] "onChangeText" call after focus/blur after touch on input #9

@markendy

Description

@markendy

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

iPhone 17 Pro Max iOS 26.3, React native 0.85.3, react-native-transformer-text-input@0.1.0,

"onChangeText" call after focus/blur after touch on input
Example:
export function createBaseTransformer(interceptors: InterceptorFn[] = []) {
return new Transformer(
({ value, previousValue }) => {
'worklet';

  return { value, selection };
},

);
}

const baseTransformer = useMemo(
() => createBaseTransformer(),
[],
);

return <TransformerTextInput
transformer={baseTransformer}
onChangeText={text => {
console.log('CHANGE:7:', text); // <-- call on focus/blur on touch
}}
/>

Library version

0.1.0

Environment info

System:
  OS: macOS 15.7.7
  CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
  Memory: 1.60 GB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.22.3
    path: /Users/user/.nvm/versions/node/v22.22.3/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 10.9.8
    path: /Users/user/.nvm/versions/node/v22.22.3/bin/npm
  Watchman:
    version: 2026.05.18.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/user/.rvm/gems/ruby-2.7.8/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.2
      - iOS 26.2
      - macOS 26.2
      - tvOS 26.2
      - visionOS 26.2
      - watchOS 26.2
  Android SDK:
    API Levels:
      - "21"
      - "22"
      - "23"
      - "24"
      - "25"
      - "26"
      - "27"
      - "28"
      - "29"
      - "30"
      - "31"
      - "32"
      - "33"
      - "34"
      - "35"
      - "36"
    Build Tools:
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 33.0.0
      - 33.0.2
      - 34.0.0
      - 35.0.0
      - 36.0.0
    System Images:
      - android-21 | Google APIs Intel x86_64 Atom
      - android-28 | ARM 64 v8a
      - android-28 | Google Play Intel x86 Atom
      - android-34 | Google APIs Intel x86_64 Atom
      - android-34 | Google Play Intel x86_64 Atom
      - android-35 | Google Play Intel x86_64 Atom
      - android-36.1 | Pre-Release 16 KB Page Size Google Play Intel x86_64 Atom
      - android-36 | Google Play Intel x86_64 Atom
      - android-37.0 | Pre-Release 16 KB Page Size Google Play Intel x86_64 Atom
      - android-Baklava | Google Play Intel x86_64 Atom
      - android-TiramisuPrivacySandbox | Google Play Intel x86_64 Atom
    Android NDK: Not Found
IDEs:
  Android Studio: 2025.1 AI-251.25410.109.2511.13752376
  Xcode:
    version: 26.3/17C529
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby:
    version: 2.7.8
    path: /Users/user/.rvm/rubies/ruby-2.7.8/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.1.3
    wanted: ^20.1.3
  react:
    installed: 19.2.3
    wanted: 19.2.3
  react-native:
    installed: 0.85.3
    wanted: 0.85.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: true

Steps to reproduce

  1. Create base TransformerTextInput
  2. Use "onChangeText" with log

Reproducible example repository

you can use any test project

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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