upgrade-react-native
Skill7.2k starsChanged 8 months agoMITView on GitHub
Upgrade the React Native fixture app to a new version. Covers JS deps, Android (Gradle, Kotlin, SDK), iOS (Podfile, pbxproj), Metro config, and third-party libraries.
- Deletes or force-pushes
1 other project uses a version of this.
Trending
Quiet since September.about the whole repository
Most recently taken up by
- react-native-community/skillstheir own version, first seen Aug 5, 2026
Who's talking about Shopify/flash-list
- wonday/react-native-pdf“feat: support rn 77”GitHub · Jan 23, 2025 · 26 reactions
- computerjazz/react-native-draggable-flatlist“FlashList Integration”GitHub · Aug 15, 2022 · 19 reactions
- software-mansion/react-native-reanimated“Bump example apps to React Native 0.77”GitHub · Nov 27, 2024 · 11 reactions
- PedroBern/react-native-collapsible-tab-view“Using Custom Components”GitHub · Aug 2, 2022 · 8 reactions
- gorhom/react-native-bottom-sheet“Is there any plan integrate FlashList to this library ?”GitHub · Jul 7, 2022 · 5 reactions
The biggest 5 of 19 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 19
Talked about on GitHub and Bluesky (19 times).
On GitHub · 18
- Jan 23, 2025feat: support rn 77 — wonday/react-native-pdf26 reactions · 7 comments
- Aug 15, 2022FlashList Integration — computerjazz/react-native-draggable-flatlist19 reactions · 4 comments
- Nov 27, 2024Bump example apps to React Native 0.77 — software-mansion/react-native-reanimated11 reactions · 2 comments
- Aug 2, 2022Using Custom Components — PedroBern/react-native-collapsible-tab-view8 reactions · 6 comments
- Jul 7, 2022Is there any plan integrate FlashList to this library ? — gorhom/react-native-bottom-sheet5 reactions · 4 comments
13 more on GitHub
- Apr 1, 2026[Android] IllegalStateException: EdgeToEdgeReactViewGroup contains null child during dispatchGetDisplayList — react/react-native4 reactions · 5 comments
- Jan 4, 2025Pressable onPress fires when scrolling FlatList — react/react-native3 reactions · 3 comments
- Sep 10, 2026chore(mobile): upgrade flash-list to 2.3.2 and repair Expo SDK 57 — Kilo-Org/cloud2 reactions · 1 comment
- Mar 11, 2026chore(deps): bump @shopify/flash-list from 2.0.2 to 2.3.0 — RipKDR/Steps-to-recovery2 reactions · 3 comments
- Nov 8, 2022Fabric Support ? — howljs/react-native-calendar-kit2 reactions · 1 comment
- Aug 4, 2026chore(deps): bump the production-dependencies group across 1 directory with 59 updates — wcpos/monorepo1 reaction · 5 comments
- Jun 17, 2026chore(deps): bump @shopify/flash-list from 2.3.1 to 2.3.2 in /apps/web/react — Enflame-Media-LLC/MagicAgent1 reaction · 1 comment
- Feb 23, 2026chore(deps)(deps): bump the security-updates group across 1 directory with 12 updates — IgorGanapolsky/MetaChrome1 reaction · 3 comments
- Feb 2, 2026chore(deps)(deps): bump the security-updates group across 1 directory with 28 updates — IgorGanapolsky/MetaChrome1 reaction · 2 comments
- Oct 13, 2025Grouper les photos par date — Sidoine/galerie1 reaction
- May 2, 2024[Bug]: useAnimatedScrollHandler is not working properly with React Native FlashList in version 3.9+ — software-mansion/react-native-reanimated1 reaction · 5 comments
- Apr 17, 2024RTL support — SimformSolutionsPvtLtd/react-native-story-view1 reaction · 1 comment
- Sep 4, 2022FlashList support ? — zyslife/react-native-head-tab-view1 reaction · 1 comment
On Bluesky · 1
- Jan 8, 2026I’d highlight recommend using flashList github.com/Shopify/flas... - it will change your live going forward! — @flikq.dev1 likes and repost · 1 reply
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- react-native-community/skills★ 28same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-deviceSkill
- analyze-feedbackSkill
- fix-github-issueSkill
- raise-prSkill
- review-and-testSkill
- triage-issueSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 9 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Check the latest stable RN version:
- Distinctive: line 19
Use the rn-diff-purge repo to see the exact template diff between your current and target version:
- Distinctive: line 35
Check third-party library compatibility with the target RN version:
- Distinctive: line 46
Update in this order:
- Very specific: line 55
Check if any Babel plugins moved packages.
- Very specific: line 61
Always verify the import works: node -e "console.log(typeof require('<path>'))"
- Distinctive: line 71
Update Gradle distribution URL to match template
- Very specific: line 74
Remove deprecated flags (e.g., android.enableJetifier, FLIPPER_VERSION)
- Very specific: line 75
Add new flags (e.g., edgeToEdgeEnabled)
- Distinctive: line 76
Update JVM args if template changed them
- Very specific: line 79
Update plugin names if changed (e.g., kotlin-android → org.jetbrains.kotlin.android)
- Very specific: line 80
Remove unused imports (e.g., import com.android.build.OutputFile)
- Very specific: line 81
Check autolinkLibrariesWithApp() is present
- Very specific: line 85
Remove manual project includes for pure-JS libraries (flash-list has no native Android code)
- Distinctive: line 88
This changes significantly between major RN versions: Always diff against the template.
- Very specific: line 98
Remove deprecated env vars (e.g., ENV['RCT_NEW_ARCH_ENABLED'] when new arch is the default)
- Very specific: line 99
Remove deprecated helper calls (e.g., get_default_flags())
- Very specific: line 100
Keep project-specific customizations (use_frameworks!
- Very specific: line 103
Update IPHONEOS_DEPLOYMENT_TARGET to match the RN minimum (e.g., 15.1 for RN 0.76+)
- Very specific: line 107
Add any new required plist keys (e.g., RCTNewArchEnabled)
- Very specific: line 158
Delete the old reference directory (e.g., e2e/artifacts/ios/Carousel_landscape/)
- Distinctive: line 159
Run the test — it creates a new reference and fails with "no reference present"
- Distinctive: line 160
Run again — it passes using the new reference
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Upgrade React Native Fixture App
Overview
The fixture app lives in fixture/react-native/. It is the primary test vehicle for FlashList on iOS and Android. The web fixture (fixture/web/) uses Expo and is independent — check it builds after the upgrade but it does not need the same dependency changes.
Step 1 — Research the Target Version
- Check the latest stable RN version:
npm view react-native@latest version - Use the rn-diff-purge repo to see the exact template diff between your current and target version:
Key files to fetch:https://raw.githubusercontent.com/react-native-community/rn-diff-purge/release/<version>/RnDiffApp/<file>package.json— React version, CLI versions, dev dep versionsandroid/build.gradle— SDK versions, Kotlin versionandroid/app/build.gradle— plugin names, dependency patternsandroid/gradle.properties— feature flags (newArch, hermes, edgeToEdge)android/gradle/wrapper/gradle-wrapper.properties— Gradle versionandroid/settings.gradle— plugin management patternandroid/app/src/main/java/com/rndiffapp/MainApplication.kt— app initialization patternios/Podfile— pod configuration, post_install hooksios/RnDiffApp/AppDelegate.swift— app delegate patternmetro.config.js— Metro config API changes
- Check third-party library compatibility with the target RN version:
react-native-reanimated— check compatibility tablereact-native-gesture-handler— supports 3 latest RN minorsreact-native-screens,react-native-safe-area-context— usually latest works@react-navigation/*— check for breaking changes- Any image library (
@d11/react-native-fast-image, etc.)
Step 2 — Update Dependencies
fixture/react-native/package.json
Update in this order:
reactandreact-native— match the template@react-native/*dev packages — must match the RN minor (e.g.,@react-native/babel-preset@0.84.1for RN 0.84.1)@react-native-community/cli*— match the template- Third-party native libraries — bump to versions compatible with the target RN
- Any new peer dependencies (e.g., reanimated 4 requires
react-native-worklets)
Babel config
Check if any Babel plugins moved packages. Example: reanimated 4 moved react-native-reanimated/plugin to react-native-worklets/plugin.
Metro config
Metro's internal module paths change between versions. Common breakage:
metro-config/src/defaults/exclusionList— in newer Metro this moved tometro-config/private/defaults/exclusionListand exports a.defaultinstead of a direct function- Always verify the import works:
node -e "console.log(typeof require('<path>'))"
Step 3 — Update Android
android/build.gradle
buildToolsVersion,compileSdkVersion,targetSdkVersion— match templatekotlinVersion— match templatendkVersion— match template (usually unchanged between minors)
android/gradle/wrapper/gradle-wrapper.properties
- Update Gradle distribution URL to match template
android/gradle.properties
- Remove deprecated flags (e.g.,
android.enableJetifier,FLIPPER_VERSION) - Add new flags (e.g.,
edgeToEdgeEnabled) - Update JVM args if template changed them
android/app/build.gradle
- Update plugin names if changed (e.g.,
kotlin-android→org.jetbrains.kotlin.android) - Remove unused imports (e.g.,
import com.android.build.OutputFile) - Check
autolinkLibrariesWithApp()is present
android/settings.gradle
- Match template structure
- Remove manual project includes for pure-JS libraries (flash-list has no native Android code)
MainApplication.kt
- This changes significantly between major RN versions. Always diff against the template.
- Preserve custom code:
AppPackage()registration andI18nUtil.allowRTL()for RTL support. - Key pattern changes across versions:
- 0.79:
SoLoader.init()+DefaultNewArchitectureEntryPoint.load()+ReactNativeHost - 0.84:
loadReactNative(this)+getDefaultReactHost()with lazy delegate (no ReactNativeHost)
- 0.79:
Step 4 — Update iOS
ios/Podfile
- Match template structure
- Remove deprecated env vars (e.g.,
ENV['RCT_NEW_ARCH_ENABLED']when new arch is the default) - Remove deprecated helper calls (e.g.,
get_default_flags()) - Keep project-specific customizations (
use_frameworks! :linkage => :staticif needed)
ios/FlatListPro.xcodeproj/project.pbxproj
- Update
IPHONEOS_DEPLOYMENT_TARGETto match the RN minimum (e.g., 15.1 for RN 0.76+) - Pod install will update header search paths and build settings automatically
ios/FlatListPro/Info.plist
- Add any new required plist keys (e.g.,
RCTNewArchEnabled)
Clean install
cd fixture/react-native
rm -rf node_modules yarn.lock
yarn install
cd ios && rm -rf Pods Podfile.lock && pod install && cd ..Step 5 — Build and Verify
Build the flash-list library first
yarn build # from repo root — compiles src/ → dist/iOS
cd fixture/react-native
xcodebuild -workspace ios/FlatListPro.xcworkspace -scheme FlatListPro \
-configuration Debug -sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro' buildAndroid
cd fixture/react-native
yarn react-native run-androidWeb
cd fixture/web && yarn install && npx expo export --platform webStep 6 — Run Tests
Unit tests
yarn test # from repo root — 181+ tests must passE2E tests (iOS)
cd fixture/react-native
yarn e2e:build:ios
yarn e2e:test:iosScreenshot reference updates: Visual diff tests (e.g., Carousel orientation) will fail after an RN upgrade because rendering changes slightly. To regenerate references:
- Delete the old reference directory (e.g.,
e2e/artifacts/ios/Carousel_landscape/) - Run the test — it creates a new reference and fails with "no reference present"
- Run again — it passes using the new reference
- Repeat for each failing screenshot (the test stops at the first missing reference per run)
Common Pitfalls
- Metro
exclusionListimport — Metro's internal API paths change between versions. Always verify the import resolves before starting Metro. - Stale Metro on wrong port — Kill ALL Metro instances before testing. Another project's Metro on a different port can cause "version mismatch" errors if the app connects to it.
react-native-reanimatedmajor version — Major bumps (3→4) require Babel plugin changes and may add new peer dependencies (react-native-worklets).- Gradle version jumps — RN upgrades often bump Gradle (e.g., 8.x→9.x). This can break custom Gradle scripts. Check build warnings for deprecations.
IPHONEOS_DEPLOYMENT_TARGET— Must match or exceed the RN minimum. Pod install updates most settings, but the project-level target in pbxproj must be set manually.Info.plistnew keys — Some RN versions require new plist entries (e.g.,RCTNewArchEnabled). Check the template's Info.plist diff.- Legacy arch removal — Starting with RN 0.82+, legacy architecture code is being removed. Ensure all dependencies support new arch.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

