-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch react-native-select-dropdown@4.0.1 for the project I'm working on.
Dropdown maxHeight style is not supported.
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-select-dropdown/src/hooks/useLayoutDropdown.js b/node_modules/react-native-select-dropdown/src/hooks/useLayoutDropdown.js
index 1fc01dc..1f5c76e 100644
--- a/node_modules/react-native-select-dropdown/src/hooks/useLayoutDropdown.js
+++ b/node_modules/react-native-select-dropdown/src/hooks/useLayoutDropdown.js
@@ -66,7 +66,7 @@ export const useLayoutDropdown = (data, dropdownStyle) => {
...{
position: 'absolute',
height: dropdownHEIGHT,
- maxHeight: DROPDOWN_MAX_HEIGHT,
+ maxHeight: Math.min(DROPDOWN_MAX_HEIGHT, dropdownStyle?.maxHeight || DROPDOWN_MAX_HEIGHT),
},
...getPositionIfKeyboardIsOpened(),
};This issue body was partially generated by patch-package.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels