Skip to content

Conversation

@NickGerleman
Copy link
Contributor

Summary:
This starts off mechanically, but needed a couple changes:

  1. Some null handling changes to TextTransform internals
  2. We type MapBuffer keys as Int instead of Short, because Kotlin does not allow the implicit widening cast that Java does. I also made these internal
  3. Some shifts around casting
  4. Mark TextLayoutManager internal, and remove usages of UnstableReactNativeAPI

I verified that there were no usages of the Java side of TextLayoutManager throughout react-native-libraries, so marking TextLayoutManager internal is unlikely to break 3p libraries.

Changelog:
[Android][Breaking] - Make Java Side TextLayoutManager Internal

Differential Revision: D76444163

@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 11, 2025
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Jun 11, 2025
Summary:
Pull Request resolved: facebook#51966

This starts off mechanically, but needed a couple changes:

1. Some null handling changes to `TextTransform` internals
2. We type MapBuffer keys as `Int` instead of `Short`, because Kotlin does not allow the implicit widening cast that Java does. I also made these internal
3. Some shifts around casting
4. Mark TextLayoutManager internal, and remove usages of `UnstableReactNativeAPI`

I verified that there were no usages of the Java side of TextLayoutManager throughout `react-native-libraries`, so marking TextLayoutManager internal is unlikely to break 3p libraries.

Changelog:
[Android][Breaking] - Make Java Side TextLayoutManager Internal

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

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

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Jun 11, 2025
Summary:
Pull Request resolved: facebook#51966

This starts off mechanically, but needed a couple changes:

1. Some null handling changes to `TextTransform` internals
2. We type MapBuffer keys as `Int` instead of `Short`, because Kotlin does not allow the implicit widening cast that Java does. I also made these internal
3. Some shifts around casting
4. Mark TextLayoutManager internal, and remove usages of `UnstableReactNativeAPI`

I verified that there were no usages of the Java side of TextLayoutManager throughout `react-native-libraries`, so marking TextLayoutManager internal is unlikely to break 3p libraries.

Changelog:
[Android][Breaking] - Make Java Side TextLayoutManager Internal

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

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

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Jun 12, 2025
Summary:
Pull Request resolved: facebook#51966

This starts off mechanically, but needed a couple changes:

1. Some null handling changes to `TextTransform` internals
2. We type MapBuffer keys as `Int` instead of `Short`, because Kotlin does not allow the implicit widening cast that Java does. I also made these internal
3. Some shifts around casting
4. Mark TextLayoutManager internal, and remove usages of `UnstableReactNativeAPI`

I verified that there were no usages of the Java side of TextLayoutManager throughout `react-native-libraries`, so marking TextLayoutManager internal is unlikely to break 3p libraries.

Changelog:
[Android][Breaking] - Make Java Side TextLayoutManager Internal

Differential Revision: D76444163
Summary:
Pull Request resolved: facebook#51966

This starts off mechanically, but needed a couple changes:

1. Some null handling changes to `TextTransform` internals
2. We type MapBuffer keys as `Int` instead of `Short`, because Kotlin does not allow the implicit widening cast that Java does. I also made these internal
3. Some shifts around casting
4. Mark TextLayoutManager internal, and remove usages of `UnstableReactNativeAPI`

I verified that there were no usages of the Java side of TextLayoutManager throughout `react-native-libraries`, so marking TextLayoutManager internal is unlikely to break 3p libraries.

Changelog:
[Android][Breaking] - Make Java Side TextLayoutManager Internal

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

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

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @NickGerleman in e82a677

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

@react-native-bot react-native-bot added the Merged This PR has been merged. label Jun 12, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 12, 2025
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in e82a677.

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