Open AyoCodess opened 1 week ago
Hi, I also needed to disable opacity from modals to animate with just slide + opacity backdrop. All I had to do was discard the passed opacity style to the View modal (same opacity controlls both backdrop and modal). I prepared a patch that does this. It would be nice to have such an option appear in the config @CharlesMangwa 🙏
react-native-modalfy+3.5.5.patch
diff --git a/node_modules/react-native-modalfy/src/lib/ModalStack.tsx b/node_modules/react-native-modalfy/src/lib/ModalStack.tsx
index 6eb20bb..7ab059c 100644
--- a/node_modules/react-native-modalfy/src/lib/ModalStack.tsx
+++ b/node_modules/react-native-modalfy/src/lib/ModalStack.tsx
@@ -144,7 +144,7 @@ const ModalStack = <P extends ModalfyParams>(props: Props<P>) => {
<Animated.View
style={[
styles.container,
- { opacity, transform: [{ translateY }] },
+ { transform: [{ translateY }] },
Platform.OS === 'web' && stack.openedItems.size ? styles.containerWeb : null,
]}>
{renderBackdrop()}
i'm trying to rebuild the IOS native modal using this library, so the android app can feel the same as the IOS. The only thing left to do is to remove the opacity transitions as the modal slides in and out, can anyone help?
can anyone help?