https://www.oracle.com/technetwork/java/javase/downloads/index.html
$ react-native init admob
https://www.npmjs.com/package/react-native-admob
$ npm install react-native-admob@next -S
$ react-native link
https://guides.cocoapods.org/using/getting-started
$ sudo gem install cocoapods
$ vi ~/.profile
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH
https://developers.google.com/admob/ios/quick-start#import_the_mobile_ads_sdk
$ cd ios && pod init
$ vi Podfile
target 'admob' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for admob
pod 'Google-Mobile-Ads-SDK'
target 'admob-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
target 'admobTests' do
inherit! :search_paths
# Pods for testing
end
end
$ pod install --repo-update
$ npm add @babel/runtime
$ yarn start
$ react-native run-ios
$ yarn start
$ android adv
$ react-native run-android