[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 theuseBottomSheet
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.
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