Skip to content

fix landscape flickering bug#368

Closed
ibrahimtuna wants to merge 1 commit intoweb-ridge:masterfrom
ibrahimtuna:master
Closed

fix landscape flickering bug#368
ibrahimtuna wants to merge 1 commit intoweb-ridge:masterfrom
ibrahimtuna:master

Conversation

@ibrahimtuna
Copy link
Copy Markdown

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

@iM-GeeKy
Copy link
Copy Markdown
Collaborator

Closing as this is stale. If it is still a problem, we should open a new pull request.

@iM-GeeKy iM-GeeKy closed this Apr 23, 2025
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.

2 participants