Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.String cannot be cast to android.text.Spanned on device RITZVIVA_S500C #17674

Closed
frmrgr opened this issue Jan 19, 2018 · 3 comments
Closed
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@frmrgr
Copy link

frmrgr commented Jan 19, 2018

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: Windows 10
Node: 8.9.4
Yarn: Not Found
npm: 5.6.0
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found

Packages: (wanted => installed)
react: 15.4.2 => 15.4.2
react-native: 0.40.0 =>0.40.0

Target Platform: Android

Steps to Reproduce

  1. Use device RITZVIVA_S500C (OS 5.1).
  2. Get com.facebook.react.views.text.ReactTextView.reactTagForTouch called.

Expected Behavior

App does not crash.

Actual Behavior

Fatal Exception: java.lang.ClassCastException
java.lang.String cannot be cast to android.text.Spanned

com.facebook.react.views.text.ReactTextView.reactTagForTouch (ReactTextView.java:76)
com.facebook.react.uimanager.TouchTargetHelper.getTouchTargetForView (TouchTargetHelper.java:269)
com.facebook.react.uimanager.TouchTargetHelper.findTargetTagAndCoordinatesForTouch (TouchTargetHelper.java:101)
com.facebook.react.uimanager.JSTouchDispatcher.handleTouchEvent (JSTouchDispatcher.java:75)
com.facebook.react.ReactRootView.dispatchJSTouchEvent (ReactRootView.java:151)
com.facebook.react.ReactRootView.onInterceptTouchEvent (ReactRootView.java:127)

Reproducible Demo

Since I do not own such a device and only see that error in crashlytics, the only option here would be to include my whole project, which I cannot do. I have seen it happening only with this single device.

@hawkup
Copy link

hawkup commented Feb 7, 2018

Check this #15452

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version?

I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer.

How to ContributeWhat to Expect from Maintainers

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon. labels Feb 24, 2018
@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Feb 24, 2018
@salmanwaheed
Copy link

salmanwaheed commented Feb 24, 2018 via email

@facebook facebook locked as resolved and limited conversation to collaborators Feb 24, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Feb 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants