Skip to content

fix: use measured layout dimensions instead of Dimensions.get('window')#186

Open
hiiamhip wants to merge 1 commit into
jfilter:mainfrom
hiiamhip:fix/use-measured-layout-instead-of-dimensions
Open

fix: use measured layout dimensions instead of Dimensions.get('window')#186
hiiamhip wants to merge 1 commit into
jfilter:mainfrom
hiiamhip:fix/use-measured-layout-instead-of-dimensions

Conversation

@hiiamhip

Copy link
Copy Markdown

_onLayout currently ignores its event parameter and reads from
Dimensions.get('window'), which returns the full screen including
system UI (navigation bar, status bar, etc.).

On devices where the component does not occupy the entire screen

  • e.g. Android car head units with a persistent left nav bar,
    or tablets in split-screen mode - the measured width is larger
    than the actual viewport. This breaks pagingEnabled FlatList:

    • Multiple pages visible at once
    • Step/dot indicators out of sync
    • Incomplete page rendering on right edge

@hiiamhip hiiamhip force-pushed the fix/use-measured-layout-instead-of-dimensions branch from 4ceacfd to 82c7a1c Compare June 28, 2026 09:23
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.

1 participant