Skip to content

Upgrade Example project to React Native 0.83.4#128

Draft
Copilot wants to merge 3 commits into
rn83from
copilot/upgrade-react-native-to-83
Draft

Upgrade Example project to React Native 0.83.4#128
Copilot wants to merge 3 commits into
rn83from
copilot/upgrade-react-native-to-83

Conversation

Copilot AI commented Mar 16, 2026

Copy link
Copy Markdown

The Example project was pinned to React Native 0.64.2 / React 17. This upgrades it to RN 0.83.4 / React 19.2.0 with all required native and JS changes.

JavaScript

  • App.js: Replace deprecated componentWillMount with componentDidMount; add componentWillUnmount for listener cleanup; drop unused imports (Platform, Text, Button, AppTourView, instructions)
  • babel.config.js: metro-react-native-babel-preset@react-native/babel-preset
  • metro.config.js: Rewrite using @react-native/metro-config
  • package.json: React 17→19.2.0, RN 0.64.2→0.83.4, replace all devDeps with RN 0.83-compatible equivalents

Android

  • build.gradle: AGP 8+, Kotlin 2.1.20, compileSdk/targetSdk 36, NDK 27.1.12297006, React Native Gradle Plugin
  • settings.gradle: Plugin management via @react-native/gradle-plugin; autolinking via ReactSettingsExtension
  • gradle.properties: Remove Flipper; set newArchEnabled=false (library not new-arch ready), hermesEnabled=true
  • app/build.gradle: Kotlin plugin, react { autolinkLibrariesWithApp() }, simplified dependencies (react-android + hermes-android)
  • Gradle wrapper: 6.7.1 → 9.0.0
  • AndroidManifest.xml: Remove deprecated package attr, add android:exported="true", expand configChanges
  • MainActivity.javaMainActivity.kt: Kotlin + DefaultReactActivityDelegate
  • MainApplication.javaMainApplication.kt: Kotlin + ReactHost / DefaultReactHost / loadReactNative
  • Add rn_edit_text_material.xml drawable; update styles.xml theme reference

iOS

  • Podfile: min_ios_version_supported, prepare_react_native_project!, remove Flipper and manual static-framework workarounds
  • AppDelegate.h/.m: Extend RCTAppDelegate; remove manual bridge setup
  • Add .xcode.env for Node binary resolution in Xcode build phases

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits March 16, 2026 02:51
- Update react to 19.2.0 and react-native to 0.83.4
- Replace metro-react-native-babel-preset with @react-native/babel-preset
- Rewrite metro.config.js to use @react-native/metro-config
- Fix deprecated componentWillMount -> componentDidMount in App.js,
  consolidate lifecycle setup and add componentWillUnmount cleanup
- Android: rewrite build.gradle, settings.gradle, gradle.properties,
  app/build.gradle for RN 0.83 / AGP 8+ with React Native Gradle Plugin
- Android: upgrade Gradle wrapper to 9.0.0
- Android: replace Java MainApplication/MainActivity with Kotlin using
  new ReactHost / DefaultReactHost / DefaultReactActivityDelegate APIs
- Android: update AndroidManifest.xml (remove package attr, add exported,
  update configChanges), styles.xml, add rn_edit_text_material drawable
- iOS: rewrite Podfile for RN 0.83 (min_ios_version_supported,
- iOS: update AppDelegate to use RCTAppDelegate base class, remove Flipper
- iOS: add .xcode.env for Node binary resolution in Xcode build phases
- Remove Flipper from both Android and iOS

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… imports in App.js

Co-authored-by: prscX <28862892+prscX@users.noreply.github.com>
Copilot AI changed the title [WIP] Update example project to React Native version 83 Upgrade Example project to React Native 0.83.4 Mar 16, 2026
Copilot AI requested a review from prscX March 16, 2026 02:58
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.

2 participants