Skip to content

docs: fill migration and theming gaps, add the Reanimated version table - #5319

Merged
Doberjohn merged 4 commits into
mainfrom
@Doberjohn/guide-gaps
Nov 24, 2026
Merged

Doberjohn merged 4 commits into
mainfrom
@Doberjohn/guide-gaps

Conversation

@Doberjohn

Copy link
Copy Markdown
Collaborator

Motivation

App migrations and fresh-app tests hit gaps in the 6.x guides:

  • Migration: PaperProvider in apps and tests, color roles and ColorValue, other libraries' dynamic schemes, Surface styles, TextInput style, Badge, the large corner, Button height, outline and padding, 5.x test IDs.
  • Theming: a theme without dark stays light; React Navigation samples reused Paper's theme names.
  • Getting Started: Reanimated and Worklets versions per React Native version, npm install order, Expo SDK, Expo Go.
  • ActivityIndicator and ProgressBar: pass aria-label.

Related issue

Part of #4991

Screenshots / Videos

None: docs only.

Test plan

Run yarn docs dev and read the new sections. On the web, axe finds no aria-progressbar-name on the indicator screens.

Adds the PaperProvider requirement and how to render tests inside it, the
color roles 6.x adds and removes, ColorValue theme colors, and a note on
dynamic color schemes from other libraries. Adds the `large` corner row, a
Badge section, the TextInput `style` change, and Button notes on a `height`
in `style`, the outline width and `contentStyle` padding. Fixes the Test IDs
list: TextInput, and the 5.x FAB and AnimatedFAB defaults.
PaperProvider follows the device's color scheme only without a `theme`, so
a theme that only sets colors stays light in dark mode, also in a nested
provider. Adds a sample that picks LightTheme or DarkTheme with
useColorScheme(). The React Navigation samples name the themes
adaptNavigationTheme returns NavigationLightTheme and NavigationDarkTheme,
so they no longer share a name with Paper's own exports.
Adds the newest Reanimated and Worklets pair for each React Native version.
The Community CLI tab installs that pair pinned with `~` before Paper,
since with npm a caret range or a Paper-first install picks a Reanimated
the app's React Native doesn't support and fails with ERESOLVE. The Expo
tab names SDK 56 as the first whose pair meets Paper's minimums and says
the app runs in Expo Go. The migration guide's Animations line links the
table.
Both render role="progressbar" with no accessible name on the web, which
axe reports as aria-progressbar-name. Their doc comments now say to pass
`aria-label`, and the indicators on the two example screens have one.
Comments and example props only: no runtime change.
@Doberjohn Doberjohn added this to the 6.0.0 milestone Nov 24, 2026
@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of a4e5031

1 finding(s): 1 minor.

🟡 Minor (1)

Where Finding
docs/6.x/docs/guides/migration.md:170 Migration test-ID list now names a fab ID and FAB.Group buttons that don't exist

Reviewed with this repository's own Sentinel configuration (c420b90e5cea).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Apex Sentinel: 1 new finding on a4e5031. The verdict and the full list are in the summary comment.

- `FAB`: `floating-action-button`
- `FAB.Extended`: `extended-floating-action-button`
- `FAB.Menu`: `floating-action-button-menu`
- `FAB`: `fab`, also on the buttons of `FAB.Group`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Minor · Migration test-ID list now names a fab ID and FAB.Group buttons that don't exist

A reader following this new bullet to the ID fab and "the buttons of FAB.Group" finds neither: no Paper version used fab (5.x used floating-action-button, 6.x ships no default testID), and FAB.Group is removed in 6.x, as line 1878 of the same guide states. The edit also deletes the only place the removed 5.x names for FAB.Extended (extended-floating-action-button) and FAB.Menu (floating-action-button-menu) were documented.

Suggested change
- `FAB`: `fab`, also on the buttons of `FAB.Group`
- `FAB`: `floating-action-button`, also on the trigger and items of `FAB.Menu`
- `FAB.Extended`: `extended-floating-action-button`
Details

Also raised here

Also raised at this location by persona maintainability: The new TextInput entry contradicts the heading it sits under: the list is introduced as components whose "hardcode… — The new TextInput entry contradicts the heading it sits under: the list is introduced as components whose "hardcoded default test IDs have been removed", so every other entry names a 5.x ID that no longer exists — yet "text-input-flat or text-input-outlined, by mode" plus "the testID goes to the input" read as the IDs 6.x actually sets, which would mean TextInput still has a default test ID and does not belong in this list. The same ambiguity hits the reworded FAB: "fab, also on the buttons of FAB.Group" — a reader cannot tell fab from the removed floating-action-button. State explicitly for each new entry whether the named ID is the 5.x one that is gone or the 6.x one that remains.

persona: senior-developer, maintainability

Useful? Reply @apex-sentinel-staging like, or @apex-sentinel-staging dislike <why> if it is not.

Reply @apex-sentinel-staging note ... to add context, or @apex-sentinel-staging pivot ... if it is wrong — I will re-check the cited code.

@Doberjohn
Doberjohn merged commit d51af60 into main Nov 24, 2026
16 checks passed
@Doberjohn
Doberjohn deleted the @Doberjohn/guide-gaps branch November 24, 2026 18:36
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.

1 participant