hoaphantn7604 / react-native-element-dropdown

A react-native dropdown component easy to customize for both iOS and Android.
MIT License
993 stars 173 forks source link

Fixed Padding issue in dropdown elements #203

Open aaftabali1 opened 1 year ago

aaftabali1 commented 1 year ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

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

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-element-dropdown/src/components/Dropdown/styles.ts b/node_modules/react-native-element-dropdown/src/components/Dropdown/styles.ts
index 08af0f3..a84eac8 100644
--- a/node_modules/react-native-element-dropdown/src/components/Dropdown/styles.ts
+++ b/node_modules/react-native-element-dropdown/src/components/Dropdown/styles.ts
@@ -38,7 +38,7 @@ export const styles = StyleSheet.create({
     fontSize: 16,
   },
   item: {
-    padding: 17,
+    padding: 10,
     flexDirection: 'row',
     justifyContent: 'space-between',
     alignItems: 'center',

This issue body was partially generated by patch-package.

proton commented 1 year ago

It would be nice to be able to customize styles.item as other things.