Web development basic and advance tutorial, php basic tutorial, laravel basic tutorial, React Native tutorial

Saturday, March 30, 2019

How to Create React Native App with Admob for Android

3 comments

I will Explain today how you can add Admob for android.

React Native is a JavaScript framework for mobile App which is supportable for both Android and iOS platforms. It is an open source framework based on React, Facebook’s JavaScript library for building user interfaces, but instead of targeting the browser, it targets mobile platforms.

Earn more from your mobile apps using Google AdMobAdMob is one of the world's largest mobile advertising platform. It is a multi-platform mobile ad network that allows you to monetize your app. User clicks on ads and earns revenue, the simplest way to improve your skills and business from Admob.

Admobs 
helps you to maximize revenue from ads and in-app purchases. By integrating AdMob you can start earning right away.

I am Using React Native Version 55. Here I tell you how to create an app then how we can implement AdMob. I use AdMob Banner and Interstitial.  I also mention Some Errors and solutions where I stuck while developing my app so it might be helpful.

To install React Native you can refer to this link below:

Once you install React Native, you need these tools to create your React Native App.
  • Terminal
  • Code Editor
  • Emulator/ Real Device

1. Create React Native App:
react-native init MyApp(App Name)
Or For Specific Version:
react-native init MyApp(App Name) --version 0.46.1

2. Run React Native App:
cd MyApp
react-native run-android


3. After running react-native run-android, you will see your new app running in your Android emulator look like this




4. Install React Native Admob

First, you need to create an AdMob account
Go to this Link:
https://www.google.com/admob/

npm install --save react-native-admob@next
Or For Specific Version:
npm install --save react-native-admob@0.46.1
react-native link react-native-admob


If you do not link react-native-admob, you may find this Error.





3 comments:

  1. Whether you prefer iPad or Android tablets, it is evident now that the Android platform is offering a serious threat to Apple's domination of the tablet market. How do the two compare and is one really so much better than the other? Apk Door

    ReplyDelete
  2. So what does that involve? It'll give the shopaholics all the more value for their money, which is never an awful thing. Maybe considerably more critically, these Android applications will give shopaphobes what they truly need less time in the stores! 7 Downloads homepage

    ReplyDelete
  3. Great Article android based projects

    Java Training in Chennai

    Project Center in Chennai

    Java Training in Chennai

    projects for cse

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

    ReplyDelete