Repository navigation
chore!: consolidate examples into a single react-native-test-app example - #178
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #177
Moves to the same example layout as react-native-menu/menu: one react-native-test-app example in
example/, with nopackage.jsonof its own, driven from the repository root.Changes
react-native.config.js:configureProjectspoints atexample/{android,ios,macos,windows}, and this package is declared as a dependency (root: __dirname), so the example now autolinks the library. Before, CLI 7 rejectedlibraryNameand silently skipped it.metro.config.jswith@rnx-kit/metro-config; it also resolves macOS/Windows, sometro.config.{macos,windows}.jsare gone.fabric-example/removed. Old vs new architecture is chosen at build time, and CI builds both: iOS withRCT_NEW_ARCH_ENABLED=1|0, Android with-PnewArchEnabled=true|false.react-native-test-appby walking up, Android gradle files are menu's (Gradle 8.14.3), and the app is namedProgressViewExample.-Werror, Podfilepost_install, Flipper, simulator picking). iOS builds withxcodebuildlike 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(andreact: *).act()for React 19, and snapshots changed only in Jest 29's serializer format (noArray/Objectprefixes).@react-native/eslint-config, withhermes-eslintfor Flow files. The babel preset parses Flow with hermes-parser, which@babel/eslint-parsercan't handle.React.Ref→React.RefSetter).@types/react-nativeis removed.ajvbumped within its range (react-native-test-app needs ≥ 8.12).jest-setups/.Verified locally
yarn lint(0 errors; 17 existing deep-import warnings),yarn flow check,yarn type-check,yarn test,yarn install --immutablereact-native configlists@react-native-community/progress-viewwith ios/android platformsjs/ProgressView.*.jsxcodebuildsucceeds, and the library's Fabric sources (RNCProgressViewShadowNode,RNCProgressViewState,RNCProgressViewComponentView) compile under RN 0.81. That is the code No matching constructor for initialization of 'RNCProgressViewState' #161 reported failing, so No matching constructor for initialization of 'RNCProgressViewState' #161 looks fixed.Note for the next release
The
peerDependencieschange ships in the next published version. Dropping support for RN < 0.76 may warrant a major version.🤖 Generated with Claude Code