Skip to content

Instantly share code, notes, and snippets.

@warodri-sendbird
Created September 3, 2021 08:20
Show Gist options
  • Save warodri-sendbird/09534b05533e03763e08aa24e5cec70f to your computer and use it in GitHub Desktop.
Save warodri-sendbird/09534b05533e03763e08aa24e5cec70f to your computer and use it in GitHub Desktop.
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