# Got DOWN touch before receiving UP or CANCEL from last gesture

**URL:** <https://community.sendbird.com/t/got-down-touch-before-receiving-up-or-cancel-from-last-gesture/10808>\
**Category:** React Native\
**Created:** [March 18, 2025, 6:33pm UTC](https://community.sendbird.com/t/got-down-touch-before-receiving-up-or-cancel-from-last-gesture/10808 "2025-03-18T18:33:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yura](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/yura/32/5225_2.png) [@yura](https://community.sendbird.com/u/yura)\
**Post date:** [March 18, 2025, 6:33pm UTC](https://community.sendbird.com/t/got-down-touch-before-receiving-up-or-cancel-from-last-gesture/10808/1 "2025-03-18T18:33:38Z")

</div>

**[Problem/Question]**  
Hi Sendbird Community,

I am encountering an issue with Sendbird UIKit, specifically with the `openSheet` function on Android. When I invoke the `openSheet` function, the app freezes, and the UI becomes unresponsive. This happens only on Android devices, and I am unable to reproduce the issue on iOS or in the simulator.

Interestingly, if I use the `openSheet` function **after the app has been minimized and reopened** , it works fine without any freezing. However, if the app is used directly without minimizing it, the freeze occurs and the app becomes unresponsive.

I am using the Sendbird UIKit and have wrapped my app with the `DialogProvider` from Sendbird to manage modal dialogs (including `openSheet`).

Additionally, in the logcat, I see the following error when the freeze occurs:  
`Got DOWN touch before receiving UP or CANCEL from last gesture`

* * *

**[UIKit Version]**  
3.8.6  
React Native version: 0.76.7

**[Reproduction Steps]**

- Open the app on an Android device.
- Call the `openSheet` function using the `useBottomSheet` hook from `@sendbird/uikit-react-native-foundation`.
- The app freezes, and the UI becomes unresponsive.
- Minimize the app and reopen it, then call the `openSheet` function again. The app works fine and does not freeze.

```auto
import { useBottomSheet } from '@sendbird/uikit-react-native-foundation';

const { openSheet } = useBottomSheet();

openSheet({
  sheetItems: [
    { title: 'Item 1', onPress: () => console.log('Item 1 pressed') },
    { title: 'Item 2', onPress: () => console.log('Item 2 pressed') },
  ],
});

```

**[Frequency]**  
This issue occurs every time the `openSheet` function is invoked on Android devices, but it is resolved after the app is minimized and reopened.

**[Current impact]**  
The freeze is significantly impacting the user experience, as the app becomes unresponsive. While the issue is temporarily resolved by minimizing and reopening the app, it makes the app behave unexpectedly in its current state. The freeze happens only on Android devices, and everything works fine on iOS or in the simulator.

I have tried various debugging methods, including updating all dependencies, ensuring proper initialization of Sendbird, and making sure there are no conflicting libraries, but the issue persists.

I would appreciate any guidance or solutions to resolve this issue. Thank you in advance!

Best regards,  
Yurii

---

<div class="post-metadata">

**Author:** ![yura](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/yura/32/5225_2.png) [@yura](https://community.sendbird.com/u/yura)\
**Post date:** [March 20, 2025, 6:12pm UTC](https://community.sendbird.com/t/got-down-touch-before-receiving-up-or-cancel-from-last-gesture/10808/2 "2025-03-20T18:12:46Z")

</div>

solution is [here](https://community.sendbird.com/t/critical-bug-app-freezes-on-android-when-opening-modals-button-long-press-on-channel-message-after-rn-0-76-x-upgrade/10818/2)
