UIKit React v3
UIKit React
UIKit
React
Home
/
UIKit
/
React
This is the new Docs for UIKit v3 beta for React. To see the previous Docs, click here.

withSendbird()

The withSendbird() component is an HOC that helps you exchange data between the Chat SDK and the UIKit modules such as Channel, ChannelList, and ChannelSettings. You can also access data stored in the SendbirdProvider state using withSendbird(). These data are used to implement chat features and customize the UI of the modules.

Note : The Chat SDK can be accessed through state.stores.sdkStore.sdk or sendBirdSelectors.getSdk().

const CustomReactComponentWithSendBirdConsumer = withSendbird(CustomReactComponent, mapStateToProps);