{"id":4786,"url":"https://github.com/react-native-contrib/react-native-heyzap","last_synced_at":"2025-08-04T02:31:49.866Z","repository":{"id":57337402,"uuid":"60223694","full_name":"react-native-contrib/react-native-heyzap","owner":"react-native-contrib","description":"A Heyzap plugin for React Native","archived":true,"fork":false,"pushed_at":"2016-06-04T21:43:57.000Z","size":75,"stargazers_count":5,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T15:39:49.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-native-contrib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-02T01:46:44.000Z","updated_at":"2024-01-20T07:19:20.000Z","dependencies_parsed_at":"2022-09-13T02:31:34.382Z","dependency_job_id":null,"html_url":"https://github.com/react-native-contrib/react-native-heyzap","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/react-native-contrib/react-native-heyzap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-native-contrib%2Freact-native-heyzap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-native-contrib%2Freact-native-heyzap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-native-contrib%2Freact-native-heyzap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-native-contrib%2Freact-native-heyzap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-native-contrib","download_url":"https://codeload.github.com/react-native-contrib/react-native-heyzap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-native-contrib%2Freact-native-heyzap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268639931,"owners_count":24282678,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-01-05T20:17:23.321Z","updated_at":"2025-08-04T02:31:49.546Z","avatar_url":"https://github.com/react-native-contrib.png","language":"Objective-C","funding_links":[],"categories":["Components"],"sub_categories":["Integrations"],"readme":"# react-native-heyzap\n\n![Heyzap logo](https://d2jks9au6e6w94.cloudfront.net/assets/new_dashboard/heybar-logo.png)\n\n[![npm version][ico-npm]][link-npm]\n[![License][ico-license]](LICENSE.md)\n[![Travis CI][ico-travis]][link-travis]\n[![Code Climate][ico-codeclimate]][link-codeclimate]\n[![Code Coverage][ico-code-coverage]][link-code-coverage]\n[![Dependencies][ico-dependencies]][link-dependencies]\n\n---\n\nAdds Heyzap integration to React Native on Android and iOS.\n\n## Requirements\n\n- node \u003e= 4.1\n- rnpm \u003e= 1.6\n\n## Installation\n\n```bash\n$ rnpm install react-native-heyzap\n```\n\n### iOS\n\nAfter `rnpm` has linked the package, there are still a few steps required.\n\nCreate a new group in your project called 'Frameworks', then right-click and\nselect 'Add Files to...'. Find the `HeyzapAds.framework` file, and check the 'Copy items\nif needed' option.\n\nThen go to 'Build Phases \u003e Link Binary With Libraries' and add `libxml2` and\n`libsqlite3`.\n\nFinally, open 'Libraries' from the navigator, and expand `Heyzap.xcodeproj`. If\nit already has a `HeyzapAds.framework` file, remove it and re-add as before.\n\n## Usage\n\nAdd the following to your `index.js`:\n\n```js\nlet Heyzap = require('react-native-heyzap');\n\nclass AwesomeApp extends Component {\n\n  showDebugPanel() {\n    this.refs.hz.showDebugPanel();\n  }\n\n  fetchAd() {\n    this.refs.hz.fetchAd();\n  }\n\n  showAd() {\n    this.refs.hz.showAd();\n  }\n\n  render() {\n    \u003cView\u003e\n      \u003cHeyzap ref=\"hz\" publisherId='publisher-id' /\u003e\n    \u003c/View\u003e\n  }\n}\n```\n\nTo call any methods on Heyzap, you must first retrieve its' reference as above.\nOnce you have the reference, you can then call any of the following methods:\n\n```js\nHeyzap.showDebugPanel();\n\n// These methods return promises\nHeyzap.showInterstitialAd();\nHeyzap.fetchVideoAd();\nHeyzap.showVideoAd();\nHeyzap.fetchIncentivizedAd();\nHeyzap.showIncentivizedAd();\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email contact@hassankhan.me instead of using the issue tracker.\n\n## Credits\n\n- [Hassan Khan][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-npm]: https://img.shields.io/npm/v/react-native-heyzap.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/react-native-contrib/react-native-heyzap/master.svg?style=flat-square\n[ico-codeclimate]: https://img.shields.io/codeclimate/github/react-native-contrib/react-native-heyzap.svg?style=flat-square\n[ico-code-coverage]: https://img.shields.io/codeclimate/coverage/github/react-native-contrib/react-native-heyzap.svg?style=flat-square\n[ico-dependencies]: https://img.shields.io/david/react-native-contrib/react-native-heyzap.svg?style=flat-square\n\n[link-npm]: https://www.npmjs.com/package/react-native-heyzap\n[link-travis]: https://travis-ci.org/react-native-contrib/react-native-heyzap\n[link-codeclimate]: https://codeclimate.com/github/react-native-contrib/react-native-heyzap\n[link-code-coverage]: https://codeclimate.com/github/react-native-contrib/react-native-heyzap/coverage\n[link-dependencies]: https://david-dm.org/react-native-contrib/react-native-heyzap\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-native-contrib%2Freact-native-heyzap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-native-contrib%2Freact-native-heyzap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-native-contrib%2Freact-native-heyzap/lists"}