Upgrade Example project to React Native 0.83.4#128
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
- 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
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.
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 deprecatedcomponentWillMountwithcomponentDidMount; addcomponentWillUnmountfor listener cleanup; drop unused imports (Platform,Text,Button,AppTourView,instructions)babel.config.js:metro-react-native-babel-preset→@react-native/babel-presetmetro.config.js: Rewrite using@react-native/metro-configpackage.json: React 17→19.2.0, RN 0.64.2→0.83.4, replace all devDeps with RN 0.83-compatible equivalentsAndroid
build.gradle: AGP 8+, Kotlin 2.1.20, compileSdk/targetSdk 36, NDK 27.1.12297006, React Native Gradle Pluginsettings.gradle: Plugin management via@react-native/gradle-plugin; autolinking viaReactSettingsExtensiongradle.properties: Remove Flipper; setnewArchEnabled=false(library not new-arch ready),hermesEnabled=trueapp/build.gradle: Kotlin plugin,react { autolinkLibrariesWithApp() }, simplified dependencies (react-android+hermes-android)AndroidManifest.xml: Remove deprecatedpackageattr, addandroid:exported="true", expandconfigChangesMainActivity.java→MainActivity.kt: Kotlin +DefaultReactActivityDelegateMainApplication.java→MainApplication.kt: Kotlin +ReactHost/DefaultReactHost/loadReactNativern_edit_text_material.xmldrawable; updatestyles.xmltheme referenceiOS
Podfile:min_ios_version_supported,prepare_react_native_project!, remove Flipper and manual static-framework workaroundsAppDelegate.h/.m: ExtendRCTAppDelegate; remove manual bridge setup.xcode.envfor 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.