Skip to content

Unify DevLoadingView code on JS side to be platform-independent#43992

Closed
rshest wants to merge 1 commit into
facebook:mainfrom
rshest:export-D55914787
Closed

Unify DevLoadingView code on JS side to be platform-independent#43992
rshest wants to merge 1 commit into
facebook:mainfrom
rshest:export-D55914787

Conversation

@rshest

@rshest rshest commented Apr 9, 2024

Copy link
Copy Markdown
Contributor

Summary:

Changelog:

[Internal] -

While looking into implementing native DevLoadingView on non-Android/iOS platform, I realized that the current code inside LoadingView.android.js/LoadingView.ios.js is functionally identical, and can be transformed into each other with simple code transformations.

This diff:

  • Renames LoadingView into DevLoadingView (as it's arguably more fitting name, given that it also relies on NativeDevLoadingView native module implementation)
  • Merges the iOS/Android specific JS files into one
  • Factors usage of the colors out of the actual logic, to better separate presentation from the business logic

From the perspective of public APIs there should be no changes.

Differential Revision: D55914787

@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 Apr 9, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

…book#43992)

Summary:
Pull Request resolved: facebook#43992

# Changelog:
[Internal] -

While looking into implementing native DevLoadingView on non-Android/iOS platform, I realized that the current code inside `LoadingView.android.js`/`LoadingView.ios.js` is functionally identical, and can be transformed into each other with simple code transformations.

This diff:
* Renames `LoadingView` into `DevLoadingView` (as it's arguably more fitting name, given that it also relies on `NativeDevLoadingView` native module implementation)
* Merges the iOS/Android specific JS files into one
* Factors usage of the colors out of the actual logic, to better separate presentation from the business logic

From the perspective of public APIs there should be no changes.

Differential Revision: D55914787
@rshest rshest force-pushed the export-D55914787 branch from dabe023 to 7e13363 Compare April 9, 2024 10:52
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@analysis-bot

Copy link
Copy Markdown
Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 19,217,880 -6
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 22,594,637 +5
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 2fcdab4
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Apr 9, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 881c0bc.

@github-actions

github-actions Bot commented Apr 9, 2024

Copy link
Copy Markdown

This pull request was successfully merged by @rshest in 881c0bc.

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

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