Open jm90m opened 6 years ago
In theory it does work in vanilla React Native but this error seems deeply rooted in GL stuff (normalize is used in a shader that isn't supported on android?). GL is really only supported in Expo, it would take a lot of time to debug this issue but I think just adding Expo will solve your issues.
same here. i am getting error: Value for title cannot be cast from ReadableNativeMap to String
did you figure out how to solve?
In some cases if this error appears it means instead of JS object need to pass a string: JSON.stringify(value)
.
I am currently working on a new cryptocurrency / chat mobile app using matrix sdk (https://github.com/matrix-org/matrix-js-sdk), and this fails for me on android, I receive the
com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.String
error.How to reproduce
Current Solution
Right now I have a file called
polyfill.js
and I import it only for android within App.js - contents of this file were taken fromNode.js
file in this library, credit goes to @EvanBacon