{"id":26142321,"url":"https://github.com/patw0929/react-smartbanner","last_synced_at":"2025-04-06T03:06:25.102Z","repository":{"id":1896234,"uuid":"42574478","full_name":"patw0929/react-smartbanner","owner":"patw0929","description":"Rewrite Smart App Banner in React.js.","archived":false,"fork":false,"pushed_at":"2022-12-10T01:30:45.000Z","size":3308,"stargazers_count":75,"open_issues_count":35,"forks_count":58,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-30T02:04:36.425Z","etag":null,"topics":["android","app","component","install","ios","react","smartbanner"],"latest_commit_sha":null,"homepage":"https://patw0929.github.io/react-smartbanner/","language":"JavaScript","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/patw0929.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-16T08:22:55.000Z","updated_at":"2025-03-21T16:56:37.000Z","dependencies_parsed_at":"2023-01-13T11:30:28.425Z","dependency_job_id":null,"html_url":"https://github.com/patw0929/react-smartbanner","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw0929%2Freact-smartbanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw0929%2Freact-smartbanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw0929%2Freact-smartbanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw0929%2Freact-smartbanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patw0929","download_url":"https://codeload.github.com/patw0929/react-smartbanner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427005,"owners_count":20937200,"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":["android","app","component","install","ios","react","smartbanner"],"created_at":"2025-03-11T03:48:17.187Z","updated_at":"2025-04-06T03:06:25.084Z","avatar_url":"https://github.com/patw0929.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-SmartBanner\n\n[![Build Status](https://travis-ci.org/patw0929/react-smartbanner.svg)](https://travis-ci.org/patw0929/react-smartbanner)\n[![npm version](https://badge.fury.io/js/react-smartbanner.svg)](http://badge.fury.io/js/react-smartbanner)\n[![Coverage Status](https://coveralls.io/repos/github/patw0929/react-smartbanner/badge.svg?branch=master)](https://coveralls.io/github/patw0929/react-smartbanner?branch=master)\n[![npm](https://img.shields.io/npm/l/express.svg?maxAge=2592000)]()\n\nRewrite [Smart App Banner](https://github.com/kudago/smart-app-banner) in React.js.\n\n\n## Demo \u0026 Examples\n\nLive demo: [patw0929.github.io/react-smartbanner](https://patw0929.github.io/react-smartbanner/)\n\nTo build the examples locally, run:\n\n```bash\nnpm install\nnpm start\n```\n\nor\n\n```bash\nyarn\nyarn start\n```\n\n## Installation\n\nThe easiest way to use react-smartbanner is to install it from NPM and include it in your own React build process (using [Webpack](http://webpack.github.io/), etc).\n\nYou can also use the standalone build by including `dist/main.js` in your page. If you use this, make sure you have already included React, and it is available as a global variable.\n\n```\nnpm install react-smartbanner --save\n```\n\nor\n\n```bash\nyarn add react-smartbanner\n```\n\n## Compatibility\n\n| react-smartbanner version | React version |\n| --- | --- |\n| `4.x.x+` | `^16.0.0` |\n| `3.x.x`  | `^15.0.0` |\n\n\n## Usage\n\nRemember to add following meta tags in your HTML page: (Use Facebook app as example)\n\n```html\n\u003chead\u003e\n  \u003cmeta name=\"apple-itunes-app\" content=\"app-id=284882215\"\u003e\n  \u003cmeta name=\"google-play-app\" content=\"app-id=com.facebook.katana\"\u003e\n  \u003cmeta name=\"msApplication-ID\" content=\"82a23635-5bd9-df11-a844-00237de2db9e\"\u003e\n  \u003cmeta name=\"msApplication-PackageFamilyName\" content=\"facebook_9wzdncrfhv5g\"\u003e\n  \u003clink rel=\"apple-touch-icon\" href=\"icon.png\"\u003e\n  \u003clink rel=\"android-touch-icon\" href=\"icon.png\"\u003e\n  \u003clink rel=\"windows-touch-icon\" href=\"icon.png\"\u003e\n\u003c/head\u003e\n```\n\nAnd React-SmartBanner component usage:\n\n```javascript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport SmartBanner from 'react-smartbanner';\nimport 'react-smartbanner/dist/main.css';\n\nReactDOM.render(\u003cSmartBanner title={'Facebook'} /\u003e, document.getElementById('content'));\n```\n\n### Properties\n\nPlease see the [Demo Page](https://patw0929.github.io/react-smartbanner/)\n\n\n## Development (`src` and the build process)\n\n**NOTE:** The source code for the component is in `src`. A UMD bundle is also built to `dist`, which can be included without the need for any build system.\n\nTo build, watch and serve the examples (which will also watch the component source), run `npm start`.\n\nIf you want to build to the bundle file to `dist/` folder, please run:\n\n```bash\nnpm run build\n```\n\nor\n\n```bash\nyarn run build\n```\n\n## Contributing\n\nTo contribute to react-smartbanner, clone this repo locally and commit your code on a separate branch. Please write tests for your code, and run the linter before opening a pull-request:\n\n```bash\nnpm test\nnpm run lint\n```\n\nor\n\n```bash\nyarn test\nyarn run lint\n```\n\n## Based on\n\n[Smart App Banner](https://github.com/kudago/smart-app-banner)\n\n## License\n\nMIT\n\nCopyright (c) 2015-2019 patw.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatw0929%2Freact-smartbanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatw0929%2Freact-smartbanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatw0929%2Freact-smartbanner/lists"}