Skip to content

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

Description

@frmrgr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions