finds.dev← search

// the find

orta/cocoapods-fix-react-native

★ 243 · Ruby · MIT · updated Dec 2023

A CocoaPods plugin for hot-patching React Native per-version

A CocoaPods plugin that centralizes the per-version hacks needed to make React Native build with CocoaPods and Swift — things Facebook never had to care about because they use a monorepo with static libraries. If you've spent an afternoon hunting through GitHub issues to get `use_frameworks!` working on a specific RN version, this is the plugin that was supposed to save you that pain.

Version-per-file structure (`0_57_3-post.rb` etc.) is the right call — each patch is self-contained and auditable, and you can see exactly what changed between RN versions. Auto-deploy on merge means the gem stays in sync with fixes without waiting on a manual release cycle. The `$root` path abstraction handles both the Pods layout and the node_modules layout without requiring callers to think about it.

Coverage stops at RN 0.59.x — React Native is now in the 0.73+ era, so this plugin does nothing for anyone on a modern version of RN. The README disables issues entirely, which was honest about the author's bandwidth but made it a dead end for the community trying to contribute fixes for newer versions. No tests for the actual patch scripts, only for the plugin command plumbing, so regressions in the Ruby fix files would go unnoticed. The whole premise is also a workaround for a problem Facebook eventually fixed upstream, which is why this repo has been quiet since 2023.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →