zendesk / react-native-sunshine-conversations

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

Method to get unread count? #34

Closed benadamstyles closed 6 years ago

benadamstyles commented 6 years ago

Would it be possible to add a method that allows us to retrieve the unread messages count, so that we can reflect this in our UI?

mspensieri commented 6 years ago

The native libraries do indeed expose this information via SKTConversation.unreadCount on iOS and Conversation.getUnreadCount() on Android, but these methods are not exposed through the Javascript wrapper

I've filed an improvement request in our backlog to add outlets to the Javascript wrapper for these. PRs are also welcome :)

benadamstyles commented 6 years ago

PR here: https://github.com/smooch/react-native-smooch/pull/35