Skip to content

fix: Render interpolated text in native views - #533

Open
begenchgeldyev wants to merge 1 commit into
react:mainfrom
begenchgeldyev:fix/native-interpolated-text
Open

begenchgeldyev wants to merge 1 commit into
react:mainfrom
begenchgeldyev:fix/native-interpolated-text

Conversation

@begenchgeldyev

@begenchgeldyev begenchgeldyev commented Nov 20, 2026 •

Copy link
Copy Markdown

Summary

On native, <html.div>Count: {count}</html.div> is empty because React Native receives raw text children under a view. Wrap text-only siblings in the same native Text used for a single string. Leave children that include elements untouched.

Fixes #525.

Evidence

  • Before: On Android 15 with Expo Go and React Native 0.85.3 (Fabric), the interpolated text was absent and React Native logged Text strings must be rendered within a <Text> component.
  • After: The same screen exposes Count: 3 in the Android view hierarchy without those errors. The single-string and nested-element controls render in both runs.
  • npm test: 910 passed, 2 skipped. npm run format:report passed.

Merge Danger

Door: Two-way. Blast radius: Native views. No web changes.

@meta-cla

meta-cla Bot commented Nov 20, 2026

Copy link
Copy Markdown

Hi @begenchgeldyev!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@meta-cla meta-cla Bot added the cla signed label Nov 20, 2026
@meta-cla

meta-cla Bot commented Nov 20, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<html.div>Count: {count}</html.div> children not rendered on native due to being an array, not a string

1 participant