Skip to content

fix: use React Native Text element in RelativeTime example#319

Closed
moss-bryophyta wants to merge 1 commit into
mainfrom
fix/react-native-relativetime-text-element
Closed

fix: use React Native Text element in RelativeTime example#319
moss-bryophyta wants to merge 1 commit into
mainfrom
fix/react-native-relativetime-text-element

Conversation

@moss-bryophyta

Copy link
Copy Markdown
Contributor

Summary

The RelativeTime API reference page for gt-react-native used an HTML <p> tag in the "Explicit value and unit" example. React Native has no <p> element — text must be wrapped in <Text> from react-native.

This fix replaces the <p> wrapper with <Text> and adds the corresponding import so the example actually runs in a React Native app.

Changes

  • docs/en-US/react-native/api/components/relativetime.mdx: <p><Text>, added import { Text } from 'react-native'

Found during the daily docs review. 🌿

…example

React Native has no <p> element. The RelativeTime API reference for
gt-react-native used an HTML <p> tag in the explicit value/unit example,
which would not work in a React Native app. Replace it with <Text> from
react-native.
@moss-bryophyta
moss-bryophyta requested a review from a team as a code owner June 17, 2026 15:05
@moss-bryophyta
moss-bryophyta enabled auto-merge (squash) June 17, 2026 15:05
@moss-bryophyta

Copy link
Copy Markdown
Contributor Author

Closing stale docs PR — docs review is moving to a linter-based workflow going forward, and this backlog is now out of date (per Taylor). Keeping #372 and #373.

auto-merge was automatically disabled July 17, 2026 18:09

Pull request was closed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant