com.facebook.react.bridge.readablenativemap cannot be cast to java.lang.string
This will resolve the issue :
alert(JSON.stringify(data))
The error was because I was passing in the url as an array but it expected a string.
This will resolve the issue :
alert(JSON.stringify(data))
The error was because I was passing in the url as an array but it expected a string.