{"id":18484872,"url":"https://github.com/prscx/react-native-notification-banner","last_synced_at":"2026-03-13T11:32:10.105Z","repository":{"id":48959417,"uuid":"141311292","full_name":"prscX/react-native-notification-banner","owner":"prscX","description":"React Native: Native Notification Banner","archived":false,"fork":false,"pushed_at":"2025-02-23T13:16:58.000Z","size":1366,"stargazers_count":91,"open_issues_count":15,"forks_count":28,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T08:09:08.107Z","etag":null,"topics":["android","ios","react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prscX.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-17T15:47:57.000Z","updated_at":"2025-03-17T10:03:38.000Z","dependencies_parsed_at":"2024-08-22T23:56:55.235Z","dependency_job_id":"87df3e96-1864-453c-9a6a-901d30c539f6","html_url":"https://github.com/prscX/react-native-notification-banner","commit_stats":{"total_commits":25,"total_committers":7,"mean_commits":"3.5714285714285716","dds":0.36,"last_synced_commit":"054c69fb2326bdf47683acf25a450bce0c7b35bc"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-notification-banner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-notification-banner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-notification-banner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-notification-banner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prscX","download_url":"https://codeload.github.com/prscX/react-native-notification-banner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149505,"owners_count":20891954,"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","ios","react-native"],"created_at":"2024-11-06T12:43:26.147Z","updated_at":"2026-03-13T11:32:10.055Z","avatar_url":"https://github.com/prscX.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/prscX"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/Tapadoo/Alerter/raw/master/documentation/alert_default.gif\" /\u003e\n\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-native-notification-banner\"\u003e\u003cimg src=\"http://img.shields.io/npm/v/react-native-notification-banner.svg?style=flat\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/prscX/react-native-notification-banner/pulls\"\u003e\u003cimg alt=\"PRs Welcome\" src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/prscX/react-native-notification-banner#License\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/react-native-notification-banner.svg?style=flat\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n    ReactNative: Native Notification Banner (Android/iOS)\n\nIf this project has helped you out, please support us with a star 🌟\n\u003c/h1\u003e\nA simple lightweight dropdown banner library using creates native capabilities\n\n\n#### Android\n\n\n| **[Tapadoo/Alerter](https://github.com/Tapadoo/Alerter)**             |\n| ----------------- |\n\n\n#### iOS\n\n| **[bryx-inc/BRYXBanner](https://github.com/bryx-inc/BRYXBanner)**             |\n| ----------------- |\n\n\n## 📖 Getting started\n\n`$ yarn add react-native-notification-banner`\n\n## **ReactNative \u003e= 77 \u0026\u0026 ReactNativeNotificationBanner \u003e V3**\n\n- Add `react-native-image-helper` your app package.json\n\n`$ npm install react-native-image-helper --save`\n\n- Add `react-native-vector-icons` to your app package.json and configure it as per their installation steps. It supports till V10\n\n`$ npm install react-native-vector-icons --save`\n\n- **iOS**\n\n \t- Add the following to your `Podfile` -\u003e `ios/Podfile` and run pod update:\n\n ```\n  #Modify below snippet outside your target project tag\n  linkage = ENV['USE_FRAMEWORKS']\n  if linkage != nil\n    Pod::UI.puts \"Configuring Pod with #{linkage}ally linked Frameworks\".green\n    use_frameworks! :linkage =\u003e linkage.to_sym\n  else\n    use_frameworks!\n  end\n\n  #Add below code in your target project tag\n  pod 'RNNotificationBanner', :path =\u003e '../node_modules/react-native-notification-banner/ios'\n\n  pod 'BRYXBanner', :git =\u003e 'https://github.com/prscX/BRYXBanner.git', :branch =\u003e 'master'\n\n  post_install do |installer|\n    installer.pods_project.targets.each do |target|\n      if target.name.include?('BRYXBanner')\n        target.build_configurations.each do |config|\n          config.build_settings['SWIFT_VERSION'] = '4.2'\n        end\n      end\n    end\n\n    # Ensure the Swift version is set for all targets\n    installer.pods_project.targets.each do |target|\n      target.build_configurations.each do |config|\n        config.build_settings['SWIFT_VERSION'] = '5.0'\n      end\n    end\n  end\n ```\n\n- **Android**\n\nPlease add below snippet into your app `build.gradle`\n\n```\nallprojects {\n    repositories {\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n\n## **RN61 \u003e= RNBAS V2 \u003e**\n\n- Add `react-native-image-helper` your app package.json\n\n`$ npm install react-native-image-helper --save`\n\n- Add `react-native-vector-icons` to your app package.json and configure it as per their installation steps\n\n`$ npm install react-native-vector-icons --save`\n\n- **iOS**\n\n\t- Add the following to your `Podfile` -\u003e `ios/Podfile` and run pod update:\n\n\t```\n  use_native_modules!\n\n  pod 'RNNotificationBanner', :path =\u003e '../node_modules/react-native-notification-banner/ios'\n\n  use_frameworks!\n\n  pod 'BRYXBanner', :git =\u003e 'https://github.com/prscX/BRYXBanner.git', :branch =\u003e 'master'\n\n  post_install do |installer|\n    installer.pods_project.targets.each do |target|\n      if target.name.include?('BRYXBanner')\n        target.build_configurations.each do |config|\n          config.build_settings['SWIFT_VERSION'] = '4.2'\n        end\n      end\n    end\n  end\n\t```\n\n- **Android**\n\nPlease add below snippet into your app `build.gradle`\n\n```\nallprojects {\n    repositories {\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n## **RN60 \u003e= RNNB V1 \u003e**\n\n`$ yarn add react-native-vector-icons`\n\n\u003e RN60 above please use `react-native-notification-banner` V1 and above\n\n- **iOS**\n\n\t- Add the following to your `Podfile` -\u003e `ios/Podfile` and run pod update:\n\n\t```\n  use_native_modules!\n\n  pod 'RNNotificationBanner', :path =\u003e '../node_modules/react-native-notification-banner/ios'\n\n  use_frameworks!\n\n  pod 'BRYXBanner', :git =\u003e 'https://github.com/prscX/BRYXBanner.git', :branch =\u003e 'master'\n\n  post_install do |installer|\n    installer.pods_project.targets.each do |target|\n      if target.name.include?('BRYXBanner')\n        target.build_configurations.each do |config|\n          config.build_settings['SWIFT_VERSION'] = '4.2'\n        end\n      end\n    end\n  end\n\t```\n\n- **Android**\n\nPlease add below snippet into your app `build.gradle`\n\n```\nallprojects {\n    repositories {\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n## **RN60 \u003c RNNB V1 \u003c**\n\n\u003e RN60 below please use `react-native-notification-banner` V.0.*\n\n`$ react-native link react-native-notification-banner`\n\n`$ react-native link react-native-vector-icons`\n\n- **iOS**\n\n  - After `react-native link react-native-notification-banner`, please verify `node_modules/react-native-notification-banner/ios/` contains `Pods` folder. If does not exist please execute `pod install` command on `node_modules/react-native-notification-banner/ios/`, if any error =\u003e try `pod repo update` then `pod install`\n  - After verification, open your project and create a folder 'RNNotificationBanner' under Libraries.\n  - Drag `node_modules/react-native-notification-banner/ios/pods/Pods.xcodeproject` into RNNotificationBanner, as well as the RNNotificationBanner.xcodeproject if it does not exist.\n  - Add the `BRYXBanner.framework` into your project's `Embedded Binaries` and make sure the framework is also in linked libraries.\n  - Go to your project's `Build Settings -\u003e Frameworks Search Path` and add `${BUILT_PRODUCTS_DIR}/BRYXBanner` non-recursive.\n\n  - Now build your iOS app through Xcode\n\n- **Android**\n\nPlease add below snippet into your app `build.gradle`\n\n```\n\nbuildscript {\n    repositories {\n        jcenter()\n        maven { url \"https://maven.google.com\" }\n\t\t...\n    }\n\t...\n}\n\n\nallprojects {\n    repositories {\n        maven { url 'https://jitpack.io' }\n\t\tmaven { url \"https://maven.google.com\" }\n\t\t...\n    }\n}\n```\n\n\u003e **Note:** This library is support on Android 27 \u003e above\n\n## 💻 Usage\n\n```javascript\nimport { RNNotificationBanner } from 'react-native-notification-banner';\n\nimport Icon from 'react-native-vector-icons/FontAwesome'\nlet copy = \u003cIcon name=\"copy\" size={24} color=\"#FFFFFF\" family={\"FontAwesome\"} /\u003e;\n\nRNNotificationBanner.Show({\n  title: \"Message\",\n  subTitle: \"Message\",\n  withIcon: true,\n  icon: copy,\n  titleColor: \"#FFFFFF\",\n  subTitleColor: \"#FFFFFF\",\n  isSwipeToDismissEnabled: true,\n})\n\n```\n\n\u003e **Note:**\n\u003e - We have added `family` prop for `Icon` class, please make sure that you pass the props\n\n\n## 💡 API's\n\n**Success**, **Error**, **Info**, **Warn**, **Normal**, **Show**\n\n\n## 🎨 Props\n\n| Prop              | Type       | Default | Note                                                                                                       |\n| ----------------- | ---------- | ------- | ---------------------------------------------------------------------------------------------------------- |\n| `title`       | `string`     |         | Specify title of banner\n| `subTitle` | `string` |         | Specify subtitle of banner                                                   |  |\n| `tintColor` | `HEX-COLOR` |         | Specify tint color of banner                                                   |  |\n| `withIcon` | `bool` |         | Enable/Disable icon                                                   |  |\n| `icon` | `RNVectorIcon` |         | Specify banner icon                                                  |  |\n| `duration` | `int` |         | Specify duration to show banner                                                   |  |\n| `enableProgress` | `bool` |    false     | Specify to show progress on banner                                                   |  |\n| `onClick`    | `func`     |         | Specify onClick callback                                        |  |\n| `onHide`      | `func`     |         | Specify onHide callback\n\n\n\n## Icons\n\n- **RN Vector Icons:** It supports [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons) library. Please find below snippet for the usage:\n\n```javascript\n\tlet facebook = \u003cIcon family={'FontAwesome'} name={'facebook'} color={'#000000'} size={30} /\u003e\n\n    RNNotificationBanner.Success({ title: \"Message\", subTitle: \"Message\", withIcon: true, icon: copy})\n```\n\n\u003e **Note:**\n\u003e - We have added `family` prop for `Icon` class, please make sure that you pass the props\n\n\n## ✨ Credits\n\n- [Tapadoo/Alerter](https://github.com/Tapadoo/Alerter)\n- [bryx-inc/BRYXBanner](https://github.com/bryx-inc/BRYXBanner)\n\n\n## 🤔 How to contribute\nHave an idea? Found a bug? Please raise to [ISSUES](https://github.com/prscX/react-native-notification-banner/issues).\nContributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.\n\n## 💫 Where is this library used?\nIf you are using this library in one of your projects, add it in this list below. ✨\n\n\n## 📜 License\nThis library is provided under the Apache 2 License.\n\nRNBottomActionSheet @ [prscX](https://github.com/prscX)\n\n## 💖 Support my projects\nI open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n* Starring and sharing the projects you like 🚀\n* If you're feeling especially charitable, please follow [prscX](https://github.com/prscX) on GitHub.\n\n  \u003ca href=\"https://www.buymeacoffee.com/prscX\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\n  Thanks! ❤️\n  \u003cbr/\u003e\n  [prscX.github.io](https://prscx.github.io)\n  \u003cbr/\u003e\n  \u003c/ Pranav \u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprscx%2Freact-native-notification-banner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprscx%2Freact-native-notification-banner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprscx%2Freact-native-notification-banner/lists"}