Skip to content

Commit d0da296

Browse files
committed
docs: channel delete blank screen troubleshooting docs
1 parent 4668b2a commit d0da296

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docusaurus/docs/reactnative/basics/troubleshooting.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,19 @@ dependencies {
246246
}
247247
```
248248

249+
## Blank screen on channel delete
250+
251+
When a channel is deleted, an event is shared from the backend which could be listened to get the status of the deleted channel.
252+
Users can listen to the event and store the status of the deleted channel and thereby display the appropriate messa
253+
254+
```tsx
255+
client.on('channel.deleted', (event) => {
256+
if (event.cid === channel.cid) {
257+
// add your action here
258+
}
259+
}),
260+
```
261+
249262
## Touchables not working
250263

251264
If you are having trouble with pressing, swiping, or otherwise interacting with components it is likely the result of [React Native Gesture Handler](https://docs.swmansion.com/react-native-gesture-handler/docs/) not being properly setup.

0 commit comments

Comments
 (0)