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.

Unable to paste into TextInput

See original GitHub issue

I just got this library set up and running, but when testing I find I’m unable to paste into TextInputs on Android. Not calling useScreens in my initialization fixes this issue.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
diegolmellocommented, Oct 31, 2019

@osdnk I’m still facing this error. Everything seems to work fine on RN itself, but it stops working when react-native-screen is added.

I’ve created this reproducible repo: https://github.com/diegolmello/PasteExample

It’s a simple demo on top of latest RN version with few packages added:

"react-native": "0.61.3",
"react-native-gesture-handler": "^1.5.0",
"react-native-reanimated": "^1.3.2",
"react-native-screens": "^2.0.0-alpha.7",
"react-navigation": "^4.0.10",
"react-navigation-stack": "^1.10.3"

The important part is that when enableScreens() is commented everything works: https://github.com/diegolmello/PasteExample/blob/master/App.js#L9

Let me know if I can help in any way. Thank you.

4reactions
compojoomcommented, Nov 5, 2019

@osdnk - please reopen the issue. The problem is still there on RN 0.61.3 and @diegolmello has provided a reproducible demo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to paste text into Text Input control conta...
The workaround for this is to type at least one character in the target Input box. This allows the user to select something...
Read more >
Unable to paste into TextInput · Issue #40 - GitHub
I just got this library set up and running, but when testing I find I'm unable to paste into TextInputs on Android.
Read more >
Enable paste and selection within TextInput - React Native
I am trying to implement copy and paste within my TextInput but cant seem to achieve it. I was expecting a tooltip when...
Read more >
How to paste text into input fields that block it? - Super User
Press F12 and paste the following code into the console. var allowPaste = function(e){ e.
Read more >
How to Prevent Pasting into an Input - David Walsh Blog
The onpaste attribute lets us prevent pasting into the form. Adding the autocomplete attribute as well as preventing drag and drop into the ......
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