innFactory / react-native-dialogflow

A React-Native Bridge for the Google Dialogflow (API.AI) SDK
https://innfactory.de/softwareentwicklung/ui-ux/sprachsteuerung-mit-api-ai-in-einer-react-native-app/
MIT License
200 stars 64 forks source link

In iOS, the result is an object but in Android the result is returned as a JSON string #13

Closed spoeck closed 7 years ago

spoeck commented 7 years ago

@thevishnupradeep was mention it in issue #11

easy workaround is:

if (Platform.OS === "android") {
      result = JSON.parse(result)
}

But anyway, it's annoying and I will release a new version which resolve this very soon