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
642 stars 166 forks source link

fixed width and height of DateRangePicker #193

Closed SharfMohiuddin closed 1 year ago

SharfMohiuddin commented 1 year ago

Simulator Screen Shot - iPhone 13 - 2022-08-29 at 11 36 13 I have changed the size of this Date Range Picker by changing it from the library but its temporary , when I will put cmd npm install all my changes will be gone. Is there any way to get any prop of height and width ? or any other solution please help!

JB712 commented 1 year ago

You can copy the file that you changed and put it in your source folder (rename it and export it as "DateRangePickerCustom" to know which one your working with). Be aware of the imports that need to be done to make it work properly. With this done npm install will not override your changes but be aware that you won't benefit the following updates (maybe it does if your component extends the original one).

This technic is applicable for any package that you want to custom 😉

RichardLindhout commented 1 year ago

See custom modal of web version you can choose your own modal than :)