Skip to content

Other modals flickering while closing dropdown #348

@SYursa

Description

@SYursa

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-element-dropdown@2.12.4 for the project I'm working on.

Other modals flickering while closing dropdown

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-element-dropdown/src/components/Dropdown/index.tsx b/node_modules/react-native-element-dropdown/src/components/Dropdown/index.tsx
index 2a73f2f..c1a3147 100644
--- a/node_modules/react-native-element-dropdown/src/components/Dropdown/index.tsx
+++ b/node_modules/react-native-element-dropdown/src/components/Dropdown/index.tsx
@@ -638,7 +638,7 @@ const DropdownComponent = React.forwardRef<IDropdownRef, DropdownProps<any>>(
     );
 
     const _renderModal = useCallback(() => {
-      if (visible && position) {
+      if (position) {
         const { isFull, width, height, top, bottom, left } = position;
 
         const onAutoPosition = () => {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions