Skip to content

chore!: consolidate examples into a single react-native-test-app example - #178

Merged
Naturalclar merged 1 commit into
masterfrom
chore/rnta-single-example
Nov 25, 2026
Merged

Naturalclar merged 1 commit into
masterfrom
chore/rnta-single-example

Conversation

@Naturalclar

Copy link
Copy Markdown
Member

Closes #177

Moves to the same example layout as react-native-menu/menu: one react-native-test-app example in example/, with no package.json of its own, driven from the repository root.

Changes

  • React Native 0.81 (react 19.1.4, react-native-macos 0.81.9, react-native-windows 0.81.42, react-native-test-app 5.4.17). It's the newest version that react-native-test-app supports on every platform this library ships for.
  • Root react-native.config.js: configureProjects points at example/{android,ios,macos,windows}, and this package is declared as a dependency (root: __dirname), so the example now autolinks the library. Before, CLI 7 rejected libraryName and silently skipped it.
  • Root metro.config.js with @rnx-kit/metro-config; it also resolves macOS/Windows, so metro.config.{macos,windows}.js are gone.
  • fabric-example/ removed. Old vs new architecture is chosen at build time, and CI builds both: iOS with RCT_NEW_ARCH_ENABLED=1|0, Android with -PnewArchEnabled=true|false.
  • Native stubs follow menu / react-native-test-app 5: Podfiles locate react-native-test-app by walking up, Android gradle files are menu's (Gradle 8.14.3), and the app is named ProgressViewExample.
  • CI: the RN 0.68 workarounds are gone (boost URL, Yoga -Werror, Podfile post_install, Flipper, simulator picking). iOS builds with xcodebuild like menu. Windows CI bundles the app and generates the solution; building it is Fix Windows CI #66.
  • peerDependencies.react-native: >=0.59.5 → >=0.76 (and react: *).
  • Toolchain bumped as RN 0.81 requires:
    • Jest 29: the test now renders inside act() for React 19, and snapshots changed only in Jest 29's serializer format (no Array/Object prefixes).
    • @react-native/eslint-config, with hermes-eslint for Flow files. The babel preset parses Flow with hermes-parser, which @babel/eslint-parser can't handle.
    • Flow 0.275 (React.Ref → React.RefSetter).
    • TypeScript 5. @types/react-native is removed.
  • ajv bumped within its range (react-native-test-app needs ≥ 8.12).
  • Removed the dead appium Windows E2E test and jest-setups/.
  • README / CLAUDE.md updated for the new layout.

Verified locally

Note for the next release

The peerDependencies change ships in the next published version. Dropping support for RN < 0.76 may warrant a major version.

🤖 Generated with Claude Code

Same layout as react-native-menu/menu: example/ has no package.json of its
own and is driven from the repository root.

- React Native 0.81 (react-native-macos/-windows 0.81, react-native-test-app
  5), the newest version all supported platforms share
- root react-native.config.js (configureProjects + autolink this package) and
  metro.config.js (@rnx-kit/metro-config, also covers macOS/Windows)
- remove fabric-example; CI builds iOS and Android for both architectures
- drop the RN 0.68 workarounds (boost URL, Yoga -Werror, Podfile hooks, Flipper)
- peerDependencies.react-native >=0.76
- toolchain per RN 0.81: Jest 29, @react-native/babel-preset and eslint-config
  (hermes-eslint for Flow files), Flow 0.275, TypeScript 5
- remove the dead appium Windows test and jest-setups

Refs #177

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Naturalclar Naturalclar changed the title chore: consolidate examples into a single react-native-test-app example chore!: consolidate examples into a single react-native-test-app example Nov 25, 2026
@Naturalclar
Naturalclar merged commit b50bfe6 into master Nov 25, 2026
8 checks passed
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.

Consolidate examples into a single react-native-test-app example (like react-native-menu)

1 participant