{"id":26331495,"url":"https://github.com/jerson/react-native-airpush","last_synced_at":"2025-10-29T13:36:42.416Z","repository":{"id":57335107,"uuid":"137606633","full_name":"jerson/react-native-airpush","owner":"jerson","description":"Airpush support for **Android**","archived":false,"fork":false,"pushed_at":"2018-06-23T21:53:19.000Z","size":17,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T21:38:11.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jerson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-16T19:51:39.000Z","updated_at":"2019-10-29T00:51:18.000Z","dependencies_parsed_at":"2022-08-29T13:01:33.814Z","dependency_job_id":null,"html_url":"https://github.com/jerson/react-native-airpush","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-airpush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-airpush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-airpush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-airpush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerson","download_url":"https://codeload.github.com/jerson/react-native-airpush/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801606,"owners_count":20350106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-15T22:37:48.997Z","updated_at":"2025-10-29T13:36:42.411Z","avatar_url":"https://github.com/jerson.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-airpush\n\nAirpush support for **Android**\n\n## Getting started\n\n`$ npm install react-native-airpush --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-airpush`\n\n### Manual installation\n\n#### Android\n\n1.  Open up `android/app/src/main/java/[...]/MainActivity.java`\n\n- Add `import me.jerson.mobile.ads.airpush.RNAirpushPackage;` to the imports at the top of the file\n- Add `new RNAirpushPackage()` to the list returned by the `getPackages()` method\n\n2.  Append the following lines to `android/settings.gradle`:\n    ```\n    include ':react-native-airpush'\n    project(':react-native-airpush').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-airpush/android')\n    ```\n3.  Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n    ```\n      compile project(':react-native-airpush')\n    ```\n4.  Add `com-YOURPACKAGETOKEN.jar` to your `android/app/libs/airpush` dir\n5.  Replace `YOURPACKAGETOKEN` with your Airpush token in `node_modules/react-native-airpush/android/src/main/java/me/jerson/mobile/ads/airpush/*.java` dir\n\n\n## Usage\n\n```javascript\nimport Airpush, { BannerView } from \"react-native-airpush\";\n\ntype AdType =\n  | \"appwall\"\n  | \"interstitial\"\n  | \"landing_page\"\n  | \"overlay\"\n  | \"smartwall\"\n  | \"video\";\n\nAirpush.setAppId(appId);\nAirpush.setApiKey(apiKey);\nAirpush.setEulaLanguage(language);\nAirpush.setPlacementId(id);\nAirpush.setTestMode(enabled);\nAirpush.setCachingEnabled(enabled);\nAirpush.setShowErrorDialog(enabled);\nAirpush.startIconAd();\nAirpush.startPushAd();\nAirpush.start360BannerAd();\nAirpush.startInterstitialAd(adType);\n\n\u003cBannerView width={320} height={50} /\u003e;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerson%2Freact-native-airpush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerson%2Freact-native-airpush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerson%2Freact-native-airpush/lists"}