When running
eas build --profile dev-purchase --platform ios --local --clear-cache
the build process works but when trying to start the app and using the react-native-purchases sdk, I get the error:
Import failed: `new NativeEventEmitter()` requires a non-null argument.
The reason seems to be that the RNPurchases native module cannot be found. This only seems to happen when using eas build and on iOS.
I have tried several of the latest react-native-purchases library versions. It seems to happen for every version.
I already searched the internet for solutions and iterated with ChatGPT but am still facing the same issue. Is anyone aware of this and possibly has a solution?