我遵循了所有最新的指南和建议,让react-native-google-mobile-ads与Expo管理的工作流程配合使用,包括:
如何将react-native-google-mobile-ads与Expo结合使用?
如何将 React-native-google-mobile-ads 与 Expo 和 Expo Go 结合使用?
但我不断收到同样的错误:
ERROR TypeError: null is not an object (evaluating 'RNAppModule.eventsNotifyReady')
看来这个错误起源于这个 jest.setup.ts 文件: https://github.com/invertase/react-native-google-mobile-ads/blob/main/jest.setup.ts
但我不知道错误是什么或如何克服它。
当我interstitial.load()按照官方文档启动时,会发生此错误。
任何帮助将不胜感激。