Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix landscape flickering bug #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ibrahimtuna
Copy link

At landscape screens, date component was flickering due to infinite loop into useCallback hook.
Here you may find an example:
https://github.com/web-ridge/react-native-paper-dates/assets/52549674/c6db7e31-dda5-4128-bdc4-ae8ba897a36b

Due to React-Native issues onLayout triggers more than once when landscape mode, and its creates infinite loop. I added more checks than before to fix it. I am not familiar the entire library, might be better approach please carefully review it.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant