zendesk / react-native-sunshine-conversations

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

Show is not a function on iOS #51

Closed arseneHuot closed 5 years ago

arseneHuot commented 6 years ago

Hi guys,

My smooch react integration works well on Android but with iOS i have this error "ExceptionsManager.js:65 _reactNativeSmooch2.default.show is not a function"

Do you have an idea why ?

Regards

shahidjabbar commented 6 years ago

@arseneFrichti, could you try to compile your code with Xcode? It could be that your code is not properly linked. Could you also try some other functions like Smooch.setFirstName("something")?

navnn commented 6 years ago

Hi, Any updates on this? I'm getting the same issue on iOS.

Cheers, Nav

vfil commented 6 years ago

Hi, Same issue for me...

mspensieri commented 6 years ago

This issue is being tracked internally, but its fairly low in the list so we won't be getting to it for some time. Pull requests are welcome if anyone can figure out what's going on here, but the show function is being declared in the iOS interface

nerboda commented 5 years ago

@arseneFrichti @vfil @navnn did any of you ever figure this out?

@shahidjabbar I did try building with Xcode but same issue. When I inspect the NativeModules object in SmoochClient.js it doesn't contain a SmoochManager object, so in fact the Smooch object imported in my app is just an empty object (thus the error). I'm assuming this still means it's not properly linked, although I followed instructions exactly and if I run $ react-native link react-native-smooch it says it's already linked.

nerboda commented 5 years ago

Solved by manually linking it.

wmora commented 5 years ago

Fixed in version 1.0.2