Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BackgroundDrawable to replace background logic on CSSBackgroundDrawable #46709

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jorge-cab
Copy link
Contributor

Summary:
Note: This diff still does nothing yet, it will be enabled on a diff further up the stack. This split is just to simplify reviewing

CSSBackgroundDrawable holds the drawing logic for both Borders and Background. This is not ideal since it results in a huge file which does 2 things.

We now have CompositeBackgroundDrawable which allows us to set a different drawable per "layer" on our view.

By splitting up Border and Background logic we get better modularity and it'll make it easier to implement more backgroundImage features without further bloating the CSSBackgroundDrawable file

Also, this helps with the kotlinification efforts

Changelog: [Internal]

Differential Revision: D63137921

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 27, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

jorge-cab added a commit to jorge-cab/react-native that referenced this pull request Sep 30, 2024
…dDrawable` (facebook#46709)

Summary:
Pull Request resolved: facebook#46709

**Note:** This diff still does nothing yet, it will be enabled on a diff further up the stack. This split is just to simplify reviewing

`CSSBackgroundDrawable` holds the drawing logic for both **Borders** and **Background**. This is not ideal since it results in a huge file which does 2 things.

We now have `CompositeBackgroundDrawable` which allows us to set a different drawable per "layer" on our view.

By splitting up **Border** and **Background** logic we get better modularity and it'll make it easier to implement more `backgroundImage` features without further bloating the `CSSBackgroundDrawable` file

Also, this helps  with the kotlinification efforts

Changelog: [Internal]

Differential Revision: D63137921
@facebook-github-bot
Copy link
Contributor

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

jorge-cab added a commit to jorge-cab/react-native that referenced this pull request Sep 30, 2024
…dDrawable` (facebook#46709)

Summary:
Pull Request resolved: facebook#46709

**Note:** This diff still does nothing yet, it will be enabled on a diff further up the stack. This split is just to simplify reviewing

`CSSBackgroundDrawable` holds the drawing logic for both **Borders** and **Background**. This is not ideal since it results in a huge file which does 2 things.

We now have `CompositeBackgroundDrawable` which allows us to set a different drawable per "layer" on our view.

By splitting up **Border** and **Background** logic we get better modularity and it'll make it easier to implement more `backgroundImage` features without further bloating the `CSSBackgroundDrawable` file

Also, this helps  with the kotlinification efforts

Changelog: [Internal]

Differential Revision: D63137921
jorge-cab added a commit to jorge-cab/react-native that referenced this pull request Oct 2, 2024
…dDrawable`, Merge into one (facebook#46709)

Summary:
Pull Request resolved: facebook#46709

**Note:** This diff still does nothing yet, it will be enabled on a diff further up the stack. This split is just to simplify reviewing

`CSSBackgroundDrawable` holds the drawing logic for both **Borders** and **Background**. This is not ideal since it results in a huge file which does 2 things.

We now have `CompositeBackgroundDrawable` which allows us to set a different drawable per "layer" on our view.

By splitting up **Border** and **Background** logic we get better modularity and it'll make it easier to implement more `backgroundImage` features without further bloating the `CSSBackgroundDrawable` file

Also, this helps  with the kotlinification efforts

Changelog: [Internal]

Differential Revision: D63137921

Reviewed By: NickGerleman
@facebook-github-bot
Copy link
Contributor

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

jorge-cab added a commit to jorge-cab/react-native that referenced this pull request Oct 2, 2024
…dDrawable` (facebook#46709)

Summary:
Pull Request resolved: facebook#46709

**Note:** This diff still does nothing yet, it will be enabled on a diff further up the stack. This split is just to simplify reviewing

`CSSBackgroundDrawable` holds the drawing logic for both **Borders** and **Background**. This is not ideal since it results in a huge file which does 2 things.

We now have `CompositeBackgroundDrawable` which allows us to set a different drawable per "layer" on our view.

By splitting up **Border** and **Background** logic we get better modularity and it'll make it easier to implement more `backgroundImage` features without further bloating the `CSSBackgroundDrawable` file

Also, this helps  with the kotlinification efforts

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D63137921
@facebook-github-bot
Copy link
Contributor

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

jorge-cab added a commit to jorge-cab/react-native that referenced this pull request Oct 3, 2024
…dDrawable` (facebook#46709)

Summary:
Pull Request resolved: facebook#46709

**Note:** This diff still does nothing yet, it will be enabled on a diff further up the stack. This split is just to simplify reviewing

`CSSBackgroundDrawable` holds the drawing logic for both **Borders** and **Background**. This is not ideal since it results in a huge file which does 2 things.

We now have `CompositeBackgroundDrawable` which allows us to set a different drawable per "layer" on our view.

By splitting up **Border** and **Background** logic we get better modularity and it'll make it easier to implement more `backgroundImage` features without further bloating the `CSSBackgroundDrawable` file

Also, this helps  with the kotlinification efforts

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D63137921
@facebook-github-bot
Copy link
Contributor

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

jorge-cab added a commit to jorge-cab/react-native that referenced this pull request Oct 3, 2024
…dDrawable` (facebook#46709)

Summary:
Pull Request resolved: facebook#46709

**Note:** This diff still does nothing yet, it will be enabled on a diff further up the stack. This split is just to simplify reviewing

`CSSBackgroundDrawable` holds the drawing logic for both **Borders** and **Background**. This is not ideal since it results in a huge file which does 2 things.

We now have `CompositeBackgroundDrawable` which allows us to set a different drawable per "layer" on our view.

By splitting up **Border** and **Background** logic we get better modularity and it'll make it easier to implement more `backgroundImage` features without further bloating the `CSSBackgroundDrawable` file

Also, this helps  with the kotlinification efforts

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D63137921
@facebook-github-bot
Copy link
Contributor

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

jorge-cab added a commit to jorge-cab/react-native that referenced this pull request Oct 3, 2024
…dDrawable` (facebook#46709)

Summary:
Pull Request resolved: facebook#46709

**Note:** This diff still does nothing yet, it will be enabled on a diff further up the stack. This split is just to simplify reviewing

`CSSBackgroundDrawable` holds the drawing logic for both **Borders** and **Background**. This is not ideal since it results in a huge file which does 2 things.

We now have `CompositeBackgroundDrawable` which allows us to set a different drawable per "layer" on our view.

By splitting up **Border** and **Background** logic we get better modularity and it'll make it easier to implement more `backgroundImage` features without further bloating the `CSSBackgroundDrawable` file

Also, this helps  with the kotlinification efforts

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D63137921
@facebook-github-bot
Copy link
Contributor

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

jorge-cab added a commit to jorge-cab/react-native that referenced this pull request Oct 8, 2024
…dDrawable` (facebook#46709)

Summary:
Pull Request resolved: facebook#46709

**Note:** This diff still does nothing yet, it will be enabled on a diff further up the stack. This split is just to simplify reviewing

`CSSBackgroundDrawable` holds the drawing logic for both **Borders** and **Background**. This is not ideal since it results in a huge file which does 2 things.

We now have `CompositeBackgroundDrawable` which allows us to set a different drawable per "layer" on our view.

By splitting up **Border** and **Background** logic we get better modularity and it'll make it easier to implement more `backgroundImage` features without further bloating the `CSSBackgroundDrawable` file

Also, this helps  with the kotlinification efforts

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D63137921
@facebook-github-bot
Copy link
Contributor

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

jorge-cab added a commit to jorge-cab/react-native that referenced this pull request Oct 9, 2024
…dDrawable` (facebook#46709)

Summary:
Pull Request resolved: facebook#46709

**Note:** This diff still does nothing yet, it will be enabled on a diff further up the stack. This split is just to simplify reviewing

`CSSBackgroundDrawable` holds the drawing logic for both **Borders** and **Background**. This is not ideal since it results in a huge file which does 2 things.

We now have `CompositeBackgroundDrawable` which allows us to set a different drawable per "layer" on our view.

By splitting up **Border** and **Background** logic we get better modularity and it'll make it easier to implement more `backgroundImage` features without further bloating the `CSSBackgroundDrawable` file

Also, this helps  with the kotlinification efforts

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D63137921
…dDrawable` (facebook#46709)

Summary:
Pull Request resolved: facebook#46709

**Note:** This diff still does nothing yet, it will be enabled on a diff further up the stack. This split is just to simplify reviewing

`CSSBackgroundDrawable` holds the drawing logic for both **Borders** and **Background**. This is not ideal since it results in a huge file which does 2 things.

We now have `CompositeBackgroundDrawable` which allows us to set a different drawable per "layer" on our view.

By splitting up **Border** and **Background** logic we get better modularity and it'll make it easier to implement more `backgroundImage` features without further bloating the `CSSBackgroundDrawable` file

Also, this helps  with the kotlinification efforts

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D63137921
@facebook-github-bot
Copy link
Contributor

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

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 p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants