If you’re using Zeego or any other React Native library that throws weird framework-related errors like “ReactCommon/RCTHost.h not found”, this is for you. The issue started with RN 0.78+ and usually only affects the old architecture with useFrameworks: 'static'.
Versions before 0.78, setups without useFrameworks, or users on the new architecture are not affected, thus do not need this workaround.
I’ve prepared a config plugin for you. Create a file, e.g. plugins/with-runtime-framework-headers.js
, with the following contents:
const { withPodfile } = require('expo/config-plugins')