{"id":26331505,"url":"https://github.com/jerson/react-native-smaato","last_synced_at":"2025-06-12T08:06:49.809Z","repository":{"id":57340242,"uuid":"137607252","full_name":"jerson/react-native-smaato","owner":"jerson","description":"Smaato support for **Android** and **iOS**","archived":false,"fork":false,"pushed_at":"2018-06-23T21:58:17.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-26T12:19:10.350Z","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-16T20:03:33.000Z","updated_at":"2019-10-29T00:51:11.000Z","dependencies_parsed_at":"2022-08-26T04:31:18.130Z","dependency_job_id":null,"html_url":"https://github.com/jerson/react-native-smaato","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jerson/react-native-smaato","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-smaato","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-smaato/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-smaato/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-smaato/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerson","download_url":"https://codeload.github.com/jerson/react-native-smaato/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-smaato/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259427003,"owners_count":22855556,"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:52.501Z","updated_at":"2025-06-12T08:06:49.786Z","avatar_url":"https://github.com/jerson.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-smaato\n\nSmaato support for **Android** and **iOS**\n\n## Getting started\n\n`$ npm install react-native-smaato --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-smaato`\n\n### Manual installation\n\n#### iOS\n\n1.  In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2.  Go to `node_modules` ➜ `react-native-smaato` and add `RNSmaato.xcodeproj`\n3.  In XCode, in the project navigator, select your project. Add `libRNSmaato.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4.  Go to `Podfile` and add `\"SmaatoSDK\", \"~\u003e 9.0.1\"` \n5.  Run your project (`Cmd+R`)\u003c\n\n#### Android\n\n1.  Open up `android/app/src/main/java/[...]/MainActivity.java`\n\n- Add `import me.jerson.mobile.ads.smaato.RNSmaatoPackage;` to the imports at the top of the file\n- Add `new RNSmaatoPackage()` to the list returned by the `getPackages()` method\n\n2.  Append the following lines to `android/settings.gradle`:\n    ```\n    include ':react-native-smaato'\n    project(':react-native-smaato').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-smaato/android')\n    ```\n3.  Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n    ```\n      compile project(':react-native-smaato')\n    ```\n4.  Add `SOMAAndroidSDKX.X.X.jar` to your `android/app/libs/smaato` dir\n\n## Usage\n\n```javascript\nimport { BannerView } from \"react-native-smaato\";\n\n\u003cBannerView publisherID={11111} publisherID={22222} adDimension={\"default\"} /\u003e;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerson%2Freact-native-smaato","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerson%2Freact-native-smaato","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerson%2Freact-native-smaato/lists"}