Skip to content

Instantly share code, notes, and snippets.

@warodri-sendbird
Created September 3, 2021 08:20
const handleStateChange = newState => {
if (newState === 'active') {
sendbird.setForegroundState();
} else {
sendbird.setBackgroundState();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment