poohding / myApp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JDK

https://www.oracle.com/technetwork/java/javase/downloads/index.html

앱 생성

$ react-native init admob

react-native-admob

https://www.npmjs.com/package/react-native-admob

install

$ npm install react-native-admob@next -S
$ react-native link

CocoaPods

https://guides.cocoapods.org/using/getting-started

install

$ sudo gem install cocoapods

profile

$ vi ~/.profile

export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH

Import the Mobile Ads SDK

https://developers.google.com/admob/ios/quick-start#import_the_mobile_ads_sdk

$ cd ios && pod init
$ vi Podfile

Podfile example

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

$ pod install --repo-update
$ npm add @babel/runtime

Usage

iOS

$ yarn start
$ react-native run-ios

AOS

$ yarn start
$ android adv
$ react-native run-android

About


Languages

Language:Objective-C 42.9%Language:Python 18.9%Language:JavaScript 17.0%Language:Java 16.2%Language:Ruby 5.0%