React-native-screens: Unable to paste into TextInput

Created on 14 Nov 2018  路  7Comments  路  Source: software-mansion/react-native-screens

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.

Most helpful comment

@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.

All 7 comments

@cmcewen Seems to be an issue with RN. I posted a workaround in the thread.
https://github.com/facebook/react-native/issues/20887

hey @cmcewen can you provide some more details regarding your setup here? That is android version react-native version, version of the screens library and anything that you'd think is relevant. We'd like to approach this problem somehow but it is difficult without a reliable way of reproducing it.

This issue appears to be resolved since the problem probably comes from RN core. If you still face the problem, please let me know.

@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.

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

I'm still having the issue

Thanks all for contributing to the discussion here. Can you please confirm if this is the same problem as reported in #205? If so let's move the discussion there and keep this issue closed.

Was this page helpful?
0 / 5 - 0 ratings