Skip to content

[iOS] [expo-ui] Add Markdown support to the Text component#42448

Merged
intergalacticspacehighway merged 6 commits intoexpo:mainfrom
Pflaumenbaum:markdown
Jan 23, 2026
Merged

[iOS] [expo-ui] Add Markdown support to the Text component#42448
intergalacticspacehighway merged 6 commits intoexpo:mainfrom
Pflaumenbaum:markdown

Conversation

@Pflaumenbaum
Copy link
Copy Markdown
Contributor

Why

Because the SwiftUI Text component in Expo UI doesn't support rendering formatted Markdown text, which is supported in SwiftUI.

How

By adding the prop 'markdownEnabled', that converts the text content into a localized string key.

Test Plan

Screenshot

Checklist

  • [x ] I added a changelog.md entry and rebuilt the package sources according to this short guide
  • [ x] This diff will work correctly for npx expo prebuild & EAS Build (eg: updated a module plugin).
  • [ x] Conforms with the Documentation Writing Style Guide

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 22, 2026

Subscribed to pull request

File Patterns Mentions
docs/** @amandeepmittal
packages/expo-ui/** @aleqsio, @behenate, @douglowder

Generated by CodeMention

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Jan 22, 2026
@Pflaumenbaum Pflaumenbaum changed the title [iOS] [expo-ui] Add Markdown support to the Text component. [iOS] [expo-ui] Add Markdown support to the Text component Jan 22, 2026
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Jan 22, 2026
@intergalacticspacehighway
Copy link
Copy Markdown
Contributor

Thanks @Pflaumenbaum LGTM! Can you also fix the lint issue, regenerate the docs API data and add an example for markdownEnabled prop?

  1. For fixing lint: cd apps/native-component-list/ && yarn lint --fix
  2. For docs: et gdad -p "expo-ui/swift-ui/text" and an example in docs/pages/versions/unversioned/sdk/ui/swift-ui/text.mdx

@Pflaumenbaum
Copy link
Copy Markdown
Contributor Author

@intergalacticspacehighway
In fdcda97, I fixed the linting issues, regenerated the documentation and added an example.

Copy link
Copy Markdown
Member

@amandeepmittal amandeepmittal left a comment

Choose a reason for hiding this comment

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

Left one suggestion. Thank you for updating the doc!
Please fix formatting issues. You can also run yarn run lint --fix.

@Pflaumenbaum
Copy link
Copy Markdown
Contributor Author

Pflaumenbaum commented Jan 22, 2026

@amandeepmittal
In eb92c16, I fixed the linting issues in the docs.

Copy link
Copy Markdown
Member

@amandeepmittal amandeepmittal left a comment

Choose a reason for hiding this comment

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

Docs changes lg! Thank you!

@intergalacticspacehighway intergalacticspacehighway merged commit eb1f2b7 into expo:main Jan 23, 2026
11 of 14 checks passed
@brentvatne brentvatne added the published Changes from the PR have been published to npm label Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants