Closed FFX3 closed 3 months ago
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch react-native-select-dropdown@4.0.0 for the project I'm working on.
react-native-select-dropdown@4.0.0
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-select-dropdown/src/SelectDropdown.js b/node_modules/react-native-select-dropdown/src/SelectDropdown.js index 4dc9447..9a5ff2b 100644 --- a/node_modules/react-native-select-dropdown/src/SelectDropdown.js +++ b/node_modules/react-native-select-dropdown/src/SelectDropdown.js @@ -40,6 +40,8 @@ const SelectDropdown = ( renderSearchInputLeftIcon /* function returns React component for search input icon */, renderSearchInputRightIcon /* function returns React component for search input icon */, onChangeSearchInputText /* function callback when the search input text changes, this will automatically disable the dropdown's interna search to be implemented manually outside the component */, + getItemLayout, + onLayout, }, ref, ) => { @@ -162,6 +164,8 @@ const SelectDropdown = ( keyExtractor={(item, index) => index.toString()} ref={dropDownFlatlistRef} renderItem={renderFlatlistItem} + getItemLayout={getItemLayout} + onLayout={onLayout} ListHeaderComponent={renderSearchView()} stickyHeaderIndices={search && [0]} keyboardShouldPersistTaps="always"
This issue body was partially generated by patch-package.
What was the problem ?
The component doesn't expose getItemLayout and onLayout.
looks like you just patched it.
https://github.com/AdelRedaa97/react-native-select-dropdown/issues/182
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
react-native-select-dropdown@4.0.0
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.