web-ridge / react-native-paper-dates

Smooth and fast cross platform Material Design date and time picker for React Native Paper
https://www.reactnativepaperdates.com
MIT License
638 stars 162 forks source link

fix alignment calendar icon #315

Closed SoyDiego closed 10 months ago

SoyDiego commented 10 months ago

Fix #298.

⬇️ ⬇️ ⬇️ Updated read below ⬇️ ⬇️ ⬇️ ⚠️

@RichardLindhout @iM-GeeKy I have changed different parts but the most important and the main problem for the alignment was the position absolute for the icon when you have in react-native-paper the option to add directly the icon in the right side and centered of the TextInput. Using the way of react-native-paper will be centered by default

image

Here I attach a gif showing the currently position and will see a little movement (to the left and top) This is because I changed between branchs to show the differences and is minimal and for that maybe it's more visible show it in this way:

fixed problem calendar.

I did and tested in Linux. I tried to test in Windows but you have another problem there. If someone can test, will be great.


Updated ⚠️

Now the alignment is better. I kept the same structure that you are using but I have replaced IconButton:

image

And now using like this:

image

The alignment is perfect!.

alignment perfect