Skip to content

Conversation

Simek
Copy link
Collaborator

@Simek Simek commented Sep 16, 2025

Why

When working on recent Sidebar and ToC I have spotted that some of the TV-related props are marked inconsistently. Also, spotted that hasTVPreferredFocus deprecation note is missing, refs:

How

Update platform marking on the TV props, add deprecation note for hasTVPreferredFocus prop, small tweaks for content formatting in various component and APIs docs.

Preview

Screenshot 2025-09-16 at 11 12 29

Copy link

netlify bot commented Sep 16, 2025

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit ed8f16f
🔍 Latest deploy log https://app.netlify.com/projects/react-native/deploys/68c9b6608eb9a50008976012
😎 Deploy Preview https://deploy-preview-4802--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cortinico
Copy link
Contributor

maybe @douglowder can help review this one?

Copy link
Contributor

@douglowder douglowder left a comment

Choose a reason for hiding this comment

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

See my requested changes inline

docs/button.md Outdated
### `hasTVPreferredFocus` <div className="label ios">tvOS</div>

:::warning Deprecated
Use [`focusable` prop](view#focusable) form `View` instead.
Copy link
Contributor

Choose a reason for hiding this comment

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

This prop is not interchangeable with focusable, and is actively used in the TV repo. See facebook/react-native#52043 (comment)

Copy link
Collaborator Author

@Simek Simek Sep 16, 2025

Choose a reason for hiding this comment

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

Hey @douglowder, thanks for the review! 👋 The goal of docs is to align with what's in the React Native code.

As it currently seems, those changes have landed, and did not get reverted, see:

I can remove the deprecation notice from the Next version docs and this PR for now, but you should rise this issue in core repo or on RN Discord, create a PR reverting the deprecation and request cherry picking to the version branch.

If the code will remain unchanged for 0.82, we will need to add the deprecation anyway, closer to the release/docs version cut. This will probably happen in around three weeks, according to the schedule:

@Simek Simek requested a review from douglowder September 16, 2025 19:12
---

### `hasTVPreferredFocus` <div className="label tv">TV</div>
### `hasTVPreferredFocus` <div className="label ios">tvOS</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

In the TV repo, this prop is supported on both Apple TV and Android TV.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hey @douglowder, after discussing it with @cortinico, looks like want to keep the docs as close to the core repo code (no other out-of-tree platform specific props or prop changes are listed in the docs).

If you have a website or doc where we can redirect people interested in TV platforms let me know. We can add a link to the page which have a better/more detailed information for TV usage.

Also, if you think that those platform annotations are incorrect in the core repo code, please create a PR addressing that, and we can follow up with docs correction, if it gets merged.

Copy link
Collaborator Author

@Simek Simek Sep 21, 2025

Choose a reason for hiding this comment

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

Also, if you need a help with setting up TV platforms website LMK, let's talk on Discord 🙂

---

### `nextFocusDown` <div className="label android">Android</div><div className="label tv">TV</div>
### `nextFocusDown` <div className="label android">Android TV</div>
Copy link
Contributor

@douglowder douglowder Sep 16, 2025

Choose a reason for hiding this comment

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

In the TV repo, this prop (and nextFocusUp, nextFocusLeft, nextFocusRight) are supported on both Apple TV and Android TV. I believe nextFocusForward is only on Android.

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.

4 participants