Repository navigation
docs: fill migration and theming gaps, add the Reanimated version table - #5319
Conversation
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.
|
Found potential problems with the pull request:
|
Apex Sentinel · ✅ Approve · review of
|
| 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.
There was a problem hiding this comment.
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` |
There was a problem hiding this comment.
🟡 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.
| - `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.
Motivation
App migrations and fresh-app tests hit gaps in the 6.x guides:
ColorValue, other libraries' dynamic schemes, Surface styles, TextInputstyle, Badge, thelargecorner, Button height, outline and padding, 5.x test IDs.darkstays light; React Navigation samples reused Paper's theme names.aria-label.Related issue
Part of #4991
Screenshots / Videos
None: docs only.
Test plan
Run
yarn docs devand read the new sections. On the web, axe finds noaria-progressbar-nameon the indicator screens.