Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native TextInput Error: perform input operation requires a valid sessionID

I have a React Native project using the Expo managed workflow with Prebuild.

I'm simply rendering a TextInput component and I am receiving this error:

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

My state cannot update it's value due to this error. I am lost as to what this means.

package.json

"expo": "~49.0.15",
"react": "18.2.0",
"react-native": "0.72.6",

After entering text into the TextInput:

[CoreGraphics] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem. [CoreGraphics] If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.

<TextInput
  style={[styles.input, { backgroundColor: lightGray }]}
  autoCapitalize="none"
  autoComplete="email"
  keyboardType="email-address"
  placeholder="Email"
  onChangeText={(text) => setEmail(text)}
  value={email}
/>
<TextInput
  style={[styles.input, { backgroundColor: lightGray }]}
  autoCapitalize="none"
  placeholder="Password"
  secureTextEntry={true}
  onChangeText={(text) => setPassword(text)}
  value={password}
/>

UPDATE

I tried this on a fresh npx create-expo-app ran npx expo prebuild then npx expo run:ios and got the same result.

like image 802
David Lintin Avatar asked Dec 19 '25 08:12

David Lintin


1 Answers

I cannot reproduce the issue you've described, but it seems related to a known issue in React Native, particularly affecting release mode on RN version 0.72. The error messages reported are consistent with those discussed in this GitHub issue: https://github.com/facebook/react-native/issues/41801.

like image 87
Abdullah Bayram Avatar answered Dec 22 '25 04:12

Abdullah Bayram



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!