Skip to content

Make sure initial dimensions are up-to-date#58

Merged
pvinis merged 1 commit into
masterfrom
use-dimensions-initial-state
Feb 20, 2020
Merged

Make sure initial dimensions are up-to-date#58
pvinis merged 1 commit into
masterfrom
use-dimensions-initial-state

Conversation

@LinusU

@LinusU LinusU commented Feb 18, 2020

Copy link
Copy Markdown
Member

Summary

Before this change, starting the app in portrait, then switching to landscape mode, and after that loading a screen that uses useDimensions would result in the original values being returned before the change event fires.

Test Plan

The buggy behaviour can easily be observed before this patch. After I applied the patch I tried again and it was working properly 👍

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • [n/a] I added the documentation in README.md
  • I mentioned this change in CHANGELOG.md
  • [n/a] I updated the typed files (TS and Flow)
  • [n/a] I added a sample use of the API in the example project (example/App.js)

@LinusU LinusU requested a review from pvinis February 18, 2020 13:22

@pvinis pvinis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pvinis pvinis merged commit 1b38192 into master Feb 20, 2020
@pvinis pvinis deleted the use-dimensions-initial-state branch February 20, 2020 06:51
@pvinis

pvinis commented Feb 21, 2020

Copy link
Copy Markdown
Member

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot mentioned this pull request Feb 21, 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