-1

I have an application that I just started in expo. It was working fine until I added the 'react-native-google-mobile-ads' package to the application, but after adding it, it started throwing the following errors constantly. Although I did all the configurations, I couldn't find any way.

Expo SDK 0.48 React Native 0.71.8

"react-native-google-mobile-ads": "^11.1.1"

enter image description here

ttars
  • 69
  • 6

2 Answers2

0

The reason is that Expo is not able to compile the native code. For testing purposes, you can use the command npx expo prebuild and run the app on the simulators or on the real device. Follow Expo's documentation for more information.

0

react-native-google-mobile-ads does not work with Expo Go, you must use dev-client instead.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 08 '23 at 12:57