Skip to content

feat: expose prefabs for newly added targets#45386

Closed
WoLewicki wants to merge 1 commit into
facebook:mainfrom
WoLewicki:@wolewicki/expose-rn75-needed-prefabs
Closed

feat: expose prefabs for newly added targets#45386
WoLewicki wants to merge 1 commit into
facebook:mainfrom
WoLewicki:@wolewicki/expose-rn75-needed-prefabs

Conversation

@WoLewicki
Copy link
Copy Markdown
Contributor

Summary:

In recent commits, some new targets have been added, and they are not exposed as prefabs, yet are used in e.g. TextLayoutManager. They are needed then for react-native-live-markdown: Expensify/react-native-live-markdown@c1611cd

Changelog:

[ANDROID] [ADDED] - expose prefabs for newly added targets

Test Plan:

It cannot be tested inside the repo, but try to build the example app with new arch enabled on Android in the react-native-live-markdown repo to see that those are needed.

@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: Software Mansion Partner: Software Mansion Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jul 11, 2024
add_library(react_render_imagemanager ALIAS ReactAndroid::react_render_imagemanager)
add_library(rrc_image ALIAS ReactAndroid::rrc_image)
add_library(rrc_legacyviewmanagerinterop ALIAS ReactAndroid::rrc_legacyviewmanagerinterop)
add_library(reactnativejni ALIAS ReactAndroid::reactnativejni)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This feels wrong @WoLewicki, I don't believe you need it.
Are you sure about this target?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Let me check what fails if I remove it in the example app in a minute.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is needed in TextLayoutManager for facebook::react::NativeArray::consume():

image

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

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

@cortinico merged this pull request in c16761d.

@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by @WoLewicki in c16761d.

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

@cortinico
Copy link
Copy Markdown
Contributor

@WoLewicki can you open a pick request for this one?

@WoLewicki
Copy link
Copy Markdown
Contributor Author

Done

blakef pushed a commit that referenced this pull request Jul 15, 2024
Summary:
In recent commits, some new targets have been added, and they are not exposed as prefabs, yet are used in e.g. `TextLayoutManager`. They are needed then for `react-native-live-markdown`: Expensify/react-native-live-markdown@c1611cd

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[ANDROID] [ADDED] - expose prefabs for newly added targets

Pull Request resolved: #45386

Test Plan: It cannot be tested inside the repo, but try to build the `example` app with new arch enabled on `Android` in the `react-native-live-markdown` repo to see that those are needed.

Reviewed By: NickGerleman

Differential Revision: D59638801

Pulled By: cortinico

fbshipit-source-id: 3d09507d72a0c4d3dbb3a2a81b753625230a04a3
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. Merged This PR has been merged. p: Software Mansion Partner: Software Mansion Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants