React Native Error ‘java.lang.String cannot be cast to com.facebook.react.uimanager.AccessibilityDelegateUtil$AccessibilityRole’ Fix

By Rashid •  October 18th, 2018 • 

If you are using the latest version of React Native then chances are high that you come across ‘java.lang.String cannot be cast to…’ error. The issue is caused by a bug in the latest react native version 0.57.

The react native error is caused by Button component and its title prop. As of now the solution to fix this React Native issue is to replace Button with Touchable Opacity component.

Hope that will help you!

Rashid

Keep Reading