Skip to content

RN: Improvements to LogBoxInspectorHeader#45194

Closed
yungsters wants to merge 1 commit into
facebook:mainfrom
yungsters:export-D59081529
Closed

RN: Improvements to LogBoxInspectorHeader#45194
yungsters wants to merge 1 commit into
facebook:mainfrom
yungsters:export-D59081529

Conversation

@yungsters
Copy link
Copy Markdown
Contributor

Summary:
Makes a couple improvmeents to LogBoxInspectorHeader:

  • Avoid eagerly initializing the StatusBar TurboModule until it is actually needed (which is only when the inspector is rendered on Android).
  • Switch to SafeAreaView on iOS, for more accurate spacing (instead of the hardcoded iPhone X notch size).

Changelog:
[General][Changed] - Improve LogBox initialization performance
[iOS][Changed] - Improve LogBox safe area insets styling

Reviewed By: lyahdav

Differential Revision: D59081529

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jun 26, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59081529

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Jun 27, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 20,315,970 -5
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 23,513,287 +11
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 39b33f1
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59081529

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59081529

Summary:
Pull Request resolved: facebook#45194

Makes a couple improvmeents to `LogBoxInspectorHeader`:

- Avoid eagerly initializing the `StatusBar` TurboModule until it is actually needed (which is only when the inspector is rendered on Android).
- Switch to `SafeAreaView` on iOS, for more accurate spacing (instead of the hardcoded iPhone X notch size).

Changelog:
[General][Changed] - Improve LogBox initialization performance
[iOS][Changed] - Improve LogBox safe area insets styling

Reviewed By: lyahdav

Differential Revision: D59081529
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59081529

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 27, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 1830283.

@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by @yungsters in 1830283.

When will my fix make it into a release? | How to file a pick request?

@yungsters yungsters deleted the export-D59081529 branch March 13, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants