sbugert / react-native-admob

A react-native component for Google AdMob banners
BSD 2-Clause "Simplified" License
1.13k stars 531 forks source link

Error: "Native module cannot be null" #412

Open davidcort opened 5 years ago

davidcort commented 5 years ago

Please Help Me. I build the project in Xcode (Success) but always got "Native module cannot be null". I created a project with Expo and then "expo eject" for working with native modules.

/// System info

React Native Environment Info: System: OS: macOS 10.14.2 CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz Memory: 587.12 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 11.1.0 - /usr/local/bin/node Yarn: 1.12.3 - /usr/local/bin/yarn npm: 6.5.0 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1 IDEs: Android Studio: 3.2 AI-181.5540.7.32.5056338 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: react: 16.5.0 => 16.5.0 react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1 npmGlobalPackages: react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7

// I did these steps

"react": "16.5.0", "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz", "react-native-admob-dfp": "^2.0.0-beta.3.9" linking with react-native link (Success)

Please help, the build in Xcode not have errors but always got "Native module cannot be null".