question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App freezes when focus TextInput

See original GitHub issue

React Native version: 0.61.1

Steps To Reproduce

  1. npx react-native init test-textinput
  2. add TextInput component
const App = () => {
  const [value, setValue] = useState('init');
  return (
    <View style={{ flex: 1, marginTop: 100 }}>
       <TextInput value={value} onChangeText={text => setValue(text)} />
    </View>
  );
};
  1. Open app in Iphone8 emulator

Describe what you expected to happen: it is possible to type text into input field

What actually happens: Application freezes after focusing TextInput

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:37
  • Comments:33 (1 by maintainers)

github_iconTop GitHub Comments

43reactions
rborncommented, Oct 11, 2019

The last comment in the apple thread fixed for me: Simulator: Hardware > "Erase all contents and settings" + disable pastebin sync

13reactions
richardfelklcommented, Oct 4, 2019

I experience the same issue with RN 0.61.2 as well. It works on Android but every focus to TextInput on iOS freezes the app.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native TextInput causing UI freeze on iOS
I'm running this code on a Mac within an iPhone 13 iOS 15.4 simulator. This is an Expo managed project but while following...
Read more >
Setting focus to True on TextInput crashes app in Windows
Setting focus to True on TextInput crashes app in Windows ... This code works perfectly on Linux but trashes the app with a...
Read more >
[Resolve]-safari iphone ios 7 Freezes on input text focus
The problem is similar to this iOS 7 Safari: OS locks up for 4 seconds when clicking/focusing on a HTML input but in...
Read more >
Xcode 11 iOS 13 simulator freeze UITextField - Apple Developer
As soon as the text field gets focus the app in the simulator freezes. Unfortunately disabling "Automatically Sync Pasteboard" doesn't work for me....
Read more >
my application crashes after i add onchange in the input tag ...
First the same kind of crash happend when i tried to open the Modal while QrCode image was visible. That's why I added...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found