react-native: Not able to proceed with TextInput || iOS release

New Version

0.72.0

Old Version

0.68.5

Build Target(s)

iOS simulator release mode

Output of react-native info

System: OS: macOS 14.1.1 CPU: (8) arm64 Apple M1 Pro Memory: 77.88 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node Yarn: 1.22.18 - /usr/local/bin/yarn npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm Watchman: 2022.10.03.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0 Android SDK: Not Found IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild Languages: Java: 17.0.7 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.72.0 => 0.72.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Issue and Reproduction Steps

Hi! I have updated the react native version from 0.68.5 to 0.72.0 the flipper and other dependencies are updated successfully.

I am facing this issue

-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID

while I am running the iOS app in release mode in Simulator (iPhone 15 - iOS 17.0), due to which I am not able to proceed further in the application.

The debug build works fine.

Attached screenshot is of the log that I am getting while clicking on a button after giving input to a TextInput

Screenshot 2023-12-05 at 5 05 23 PM

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 31
  • Comments: 69 (1 by maintainers)

Most upvoted comments

anyone looking into this issue?

also dealing with this issue. I believe the same issue has been addressed on Apple forum https://forums.developer.apple.com/forums/thread/731700 and on StackOverflow https://stackoverflow.com/questions/77165006/searchable-swiftui-on-ios-17-cause-an-error-invalid-numeric-value but no solution has been proposed yet. I get the same log when I click a TextInput on the simulator.

RN 72.5 Expo 49.0.13

Still an issue in"expo": “~52.0.25”, and “react-native”: “0.76.6”,

same issue, “react-native”: “0.71.14”, expo 0.7.3 even if nothing but textinput surrounded by view with no other code will still get error when press on text input in simulator: [RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID

update: worked with reset to metro.

You are likely destroying/recreating the component on re-rendering. Hard to say for sure what the issue is without any reproduction code.

If you are doing something like this where you define an input inline, i.e.

App() {
 const InlineInput = () => <TextInput /> // Move this outside of the function definition.

  return (
   <InlineInput />
  )
}

You will see this error.

Previous versions of RN/iOS didn’t seem to mind this, but now it’s causing problems. My opinion is this is not a bug, but an implementation issue. Native devs see this too when they use LazyVStacks that recycle.

Hope that helps

I get this: [RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations

same issue here, "expo": "~52.0.3", and "react-native": "0.76.1",

it isn’t a warning or error, seems like a log 🤔

Screenshot 2024-11-15 at 10 42 00 AM

I am getting the same warning, AI assistants say that it’s not important and I should learn to live with and accept it being part of my log outputs

[RemoteTextInput] -[RTIInputSystemClient
remoteTextInputSessionWithID:performInputOperation:]  perform input
operation requires a valid sessionID. inputModality = Keyboard,
inputOperation = <null selector>, customInfoType =
UIEmojiSearchOperations```

I am facing the same issue. I found that first mount is ok, then I used expo-router to navigate back, and navigate to data entry page again that is when I see this message

You are likely destroying/recreating the component on re-rendering. Hard to say for sure what the issue is without any reproduction code.

If you are doing something like this where you define an input inline, i.e.

App() {
 const InlineInput = () => <TextInput /> // Move this outside of the function definition.

  return (
   <InlineInput />
  )
}

You will see this error.

Previous versions of RN/iOS didn’t seem to mind this, but now it’s causing problems. My opinion is this is not a bug, but an implementation issue. Native devs see this too when they use LazyVStacks that recycle.

Hope that helps

I had the same structure as below. When separating some components as function expressions within the same component, the same error occurs, and there’s an issue with losing focus after typing.

const MyComponent = () => {

  const HeaderComponent = () => <TextInput />;

  return (
    <>
      <HeaderComponent />
    </>
  );
};

export default MyComponent;

The problem was resolved by modifying it as follows, but I’m not sure about the exact cause either.

const MyComponent = () => {
  return (
    <>
      <TextInput />;
    </>
  );
};

export default MyComponent;