zendesk / react-native-sunshine-conversations

React Native wrapper for Smooch.io
MIT License
36 stars 26 forks source link

Got unknown argument class: SmoochCallback #42

Closed ahndrew closed 6 years ago

ahndrew commented 6 years ago

Get the following error with the latest react-native-smooch v1.0.0

Looks like SmoochCallback is not a valid argument type for the react bridge for the login/logout methods

screenshot_20170920-232937

jnrepo commented 6 years ago

@ahndrew Check your MainApplication.java. Add the lines below in the snippet after the line import io.smooch.core.Smooch;.

import io.smooch.core.Settings;
import io.smooch.core.SmoochCallback;

It's on the smooch-android docs, but isn't on the docs for react-native-smooch.

PR for this https://github.com/smooch/react-native-smooch/pull/52

jugarrit commented 6 years ago

Fixed in newest version