Open SoyDiego opened 7 months ago
Could you give me a hand / ideas / opinions @RichardLindhout?.
Thanks
I think we could reduce states by useWindowDimensions hook and not use state's at all. I'm not sure why the layout won't change do we have hardcoded width somewhere maybe?
const dimensions = useWindowDimensions()
const isLandscape = dimensions.width > dimensions.height
What about tablets we only need to change scrollMode if height is not enough right?
I think te problem is here: https://github.com/web-ridge/react-native-paper-dates/blob/master/src/Date/AutoSizer.tsx#L27
Does the onLayout get called is device is rotated?
I think the swiper.native.ts + Autosizer have some problems maybe on rotate?
What about tablets we only need to change scrollMode if height is not enough right?
Thanks for your reply. I didn't check in tablets because I don't have iOS
, for that I would like your help to manage this problem.
I can try some things that you told me above, but my level in react-native is not in your level hahaha.
I hope we can improve it because is very important this things for accessibility
.
Thanks again
Fix #355.
Read below ⚠️
POSSIBLE SOLUTION AT THE MOMENT
Is not 100% ok, we should improve it. I was able to made scrollable the calendar and works perfectly If you are in mode
portrait
all time or if you are in modelandscape
all time. But if you open the modal inportrait
and you rotate tolandscape
the scroll will works, but the layout will breaks. @RichardLindhout I hope can help us to solve this problem.Layout when you change from
portrait
tolandscape
.Layout when you change from
landscape
toportrait
.