Skip to content

chore: upgrade React Native to 0.83 - #682

Merged
Naturalclar merged 2 commits into
masterfrom
spike/rn-0.83-xcode26
Nov 18, 2026
Merged

Naturalclar merged 2 commits into
masterfrom
spike/rn-0.83-xcode26

Conversation

@Naturalclar

@Naturalclar Naturalclar commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Upgrades React Native from 0.76 to 0.83 in one step. This removes the Xcode 16.2 pin #680 added: RN 0.83.5+ ships fmt 12.1.0, which builds on Xcode 26, so the iOS and macOS jobs go back to macos-latest.

The library's native code (iOS, Android, macOS) compiles on 0.83 with no changes. Everything below is dependency, example-app or tooling setup.

Changes

Area Change
Dependencies react-native 0.83.10, react/react-test-renderer 19.2.0, react-native-macos / react-native-windows ^0.83.0, react-native-test-app ^5.4.17, @react-native/* 0.83.10, @react-native-community/cli* 20.0.0
CI iOS/macOS jobs back on macos-latest; Xcode 16.2 pin removed
Example Android Removed the node_modules/react-native/android maven repo lookup (RN no longer ships it); Gradle wrapper 8.8 → 9.0.0
Flow flow-bin 0.222 → ^0.289 (what RN 0.83 uses) plus the matching .flowconfig options
Example Metro @rnx-kit/metro-config ^2.2.6 (2.0.1 crashes on Metro 0.83); metro.config.js resolves @react-native-picker/picker to the library source, since Yarn doesn't link the root workspace into node_modules
js/ Type-only fixes for types RN/Flow removed or renamed: SyntheticEvent → NativeSyntheticEvent, HostComponent now imported from react-native, React.AbstractComponent → React.ComponentType, and every $FlowFixMe now has an error code. No runtime changes.

Runtime check

Ran the example app with Metro locally:

  • Android (API 36 emulator): every picker renders; opening the Basic picker and choosing a different value updates it.
  • iOS (iPhone 16 Pro simulator, Xcode 16.2): the pickers render with no red-box errors. I couldn't test interaction because no simulator input tool is installed.

Running the app turned up three problems CI can't see, all fixed in the second commit: the version bump had overwritten the package's "react-native" entry field and pinned the peerDependencies, and the example couldn't start or bundle in Metro.

Not covered

  • Deprecation warnings: RN 0.83 warns about deep imports (react-native/Libraries/Utilities/codegenNativeComponent / codegenNativeCommands) in js/Android*NativeComponent.js. Harmless for now. Follow-up.

  • Old architecture: RN 0.82+ only runs the New Architecture, so the library's old-arch code paths are no longer exercised by CI.

  • macOS: react-native-test-app 5.4 officially lists react-native-macos up to 0.81. 0.83.0 builds fine in CI despite the peer warning.

  • Jest: yarn test:jest was already broken before this PR (Jest 26 vs RN's Jest 29 environment) and is still broken. Follow-up.

🤖 Generated with Claude Code

Bump react-native to 0.83.10 (React 19.2), react-native-macos and
react-native-windows to 0.83, and react-native-test-app to 5.4.
RN 0.83.5+ ships fmt 12.1.0, which builds on Xcode 26, so the iOS and
macOS CI jobs go back to macos-latest without the Xcode 16.2 pin.

Example app:
- Drop the local node_modules/react-native/android maven repo, which
  RN no longer ships.
- Gradle wrapper 8.8 -> 9.0.0.

Flow:
- flow-bin 0.222 -> 0.289 (the version RN 0.83 uses), with the
  matching .flowconfig options.
- Type-only fixes for removed/renamed types (SyntheticEvent,
  HostComponent, React.AbstractComponent, Element) and error codes on
  every suppression. No runtime changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Naturalclar
Naturalclar force-pushed the spike/rn-0.83-xcode26 branch from 780e64f to d2d7936 Compare November 16, 2026 04:57
@Naturalclar Naturalclar changed the title [spike, do not merge] RN 0.83 on Xcode 26 chore: upgrade React Native to 0.83 Nov 16, 2026
@Naturalclar
Naturalclar marked this pull request as ready for review November 16, 2026 04:57
The RN 0.83 version bump accidentally overwrote the top-level
"react-native" entry field ("js/index.js" -> "0.83.10") and pinned
peerDependencies to react 19.2.0 / react-native 0.83.10. Restore both.

Example app (found by running it on a simulator/emulator; CI only
compiles native code and never starts Metro):
- @rnx-kit/metro-config ^2.0.0 -> ^2.2.6; 2.0.1 crashes on Metro 0.83
  ("exclusionList is not a function").
- Resolve @react-native-picker/picker to the library's source in
  metro.config.js. The library is the root workspace, which Yarn does
  not link into node_modules, so the example could not bundle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Naturalclar
Naturalclar merged commit 4cc4432 into master Nov 18, 2026
12 checks passed
@Naturalclar
Naturalclar deleted the spike/rn-0.83-xcode26 branch November 18, 2026 16:35
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.

1 participant