Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle is visible above a plain view #496

Open
BodaThomas opened this issue Dec 8, 2023 · 0 comments
Open

Handle is visible above a plain view #496

BodaThomas opened this issue Dec 8, 2023 · 0 comments

Comments

@BodaThomas
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

The handle of the library is still visible even when a view with a plain background is above it. To fix this issue, I just needed to remove the zIndex value of the handle style. When we remove this value, the handle is still correctly visible on the modal at everytime.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-modalize/lib/styles.js b/node_modules/react-native-modalize/lib/styles.js
index 89507e9..cd1ab42 100644
--- a/node_modules/react-native-modalize/lib/styles.js
+++ b/node_modules/react-native-modalize/lib/styles.js
@@ -32,7 +32,6 @@ exports.default = react_native_1.StyleSheet.create({
         top: -20,
         right: 0,
         left: 0,
-        zIndex: 5,
         paddingBottom: 20,
         height: 20,
     },

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant