react-native-bottom-sheet: [Bug][Android]: Conflict with react-native-modal when Fabric/new architecture enabled

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

Android

What happened?

The modal shows up with blank background and its children are collapsed I already created the bug but it was marked as invalid https://github.com/gorhom/react-native-bottom-sheet/issues/2166

Reproduction steps

Place both components in the same screen then the issue happen:

import Modal from “react-native-modal”; import BottomSheet, {…} from “@gorhom/bottom-sheet”;

<View> <BottomSheet .../> <Modal .../> </View>

This issue only happen if:

  • New architecture enabled
  • On Android, both debug and release
  • (react-native-modal) and in the same screen

Here’s the button I press to open the react-native-modal:

Then the modal shows up with blank background and its children are collapsed

When I remove from the screen, the works fine again

Reproduction sample

https://snack.expo.dev/@liudmyla.chubar/drag-down-issue

Relevant log output

Reproduction sample above is not of the issue!!
I only use it so that the issue won't marked as invalid

About this issue

Most upvoted comments

clean your keyboard bro

I am also seeing this issue when trying to use Modal from ‘react-native’ in combination with BottomSheet from ‘@gorhom/bottom-sheet’ (v5.1.1).

My app has a FlashList with items. A BottomSheet containing a BottomSheetScrollView is used to show filtering options for the list. With new arch disabled, clicking an item in the list opens the modal as expected. When creating a new build with new arch enabled, clicking an item will not show the modal content, but makes the the screen unresponsive to any input. So some kind of overlay is rendered, but the modal itself is not visible.

Whenever I remove the BottomSheet from the view everything is working as expected.

This issue is blocking me from moving to new arch.