From 2fa7c6f93acb5f66d68620dad3f1f628a5135462 Mon Sep 17 00:00:00 2001 From: xerdnu Date: Mon, 16 Oct 2023 02:43:04 +0200 Subject: [PATCH] Patch v0.0.5 --- CHANGELOG.md | 11 +++++++++++ README.md | 5 ++++- .../java/com/reactlibrary/BlastedImageModule.java | 10 ++++++++++ package.json | 2 +- 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8186a8b..efb5d2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [0.0.5] (2023-10-16) + +#### Bug Fixes + +- Fixed warning regarding event listeners on Android. + +#### Changes + +- Updated documentation. + ## [0.0.4] (2023-10-16) #### Bug Fixes @@ -29,6 +39,7 @@ - Initial release. +[0.0.5]: https://github.com/xerdnu/react-native-blasted-image/compare/v0.0.4...v0.0.5 [0.0.4]: https://github.com/xerdnu/react-native-blasted-image/compare/v0.0.3...v0.0.4 [0.0.3]: https://github.com/xerdnu/react-native-blasted-image/compare/v0.0.2...v0.0.3 [0.0.2]: https://github.com/xerdnu/react-native-blasted-image/compare/v0.0.1...v0.0.2 \ No newline at end of file diff --git a/README.md b/README.md index 9b1f341..37d7c69 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # :rocket: BlastedImage +[![npm downloads](https://img.shields.io/npm/dm/react-native-blasted-image.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-blasted-image) +[![platform - android](https://img.shields.io/badge/platform-Android-3ddc84.svg?logo=android&style=for-the-badge)](https://www.android.com) +[![platform - ios](https://img.shields.io/badge/platform-iOS-0067b8.svg?logo=apple&style=for-the-badge)](https://developer.apple.com/ios) A simple yet powerful image component for React Native, powered by [Glide](https://github.com/bumptech/glide) (Android) and [SDWebImage](https://github.com/SDWebImage/SDWebImage) (iOS). @@ -95,4 +98,4 @@ Contributions are welcome! If you find a bug or have a feature request, please o ## License - BlastedImage - `MIT` :copyright: [xerdnu](https://github.com/xerdnu) - SDWebImage - `MIT` -- Glide - `BSD`, part `MIT` and `Apache 2.0`. See the [LICENSE](https://github.com/bumptech/glide/blob/master/license) file for details. \ No newline at end of file +- Glide - `BSD`, part `MIT` and `Apache 2.0`. See the [LICENSE](https://github.com/bumptech/glide/blob/master/LICENSE) file for details. \ No newline at end of file diff --git a/android/src/main/java/com/reactlibrary/BlastedImageModule.java b/android/src/main/java/com/reactlibrary/BlastedImageModule.java index fbc41cb..f1530ed 100644 --- a/android/src/main/java/com/reactlibrary/BlastedImageModule.java +++ b/android/src/main/java/com/reactlibrary/BlastedImageModule.java @@ -56,6 +56,16 @@ public String getName() { return NAME; } + @ReactMethod + public void addListener(String eventName) { + // Do nothing + } + + @ReactMethod + public void removeListeners(Integer count) { + // Do nothing + } + // Show/Preload the image @ReactMethod public void loadImage(String imageUrl, ReadableMap headersMap, Promise promise) { diff --git a/package.json b/package.json index db73e4c..710f37a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-blasted-image", - "version": "0.0.4", + "version": "0.0.5", "description": "A simple yet powerful image component for React Native, powered by Glide and SDWebImage", "main": "index.js", "scripts": {