Commit Graph
31 Commits
Author SHA1 Message Date
Numan f1588beec0 feat(ios): cancel image load when unmounted (#787) 2021-09-15 16:35:39 +07:00
DreamPiggy 4a7cd64f5b feat(ios): allow for for per-image-request-headers (#691)
* Bump the dependency of SDWebImage into 5.8+ because of the SDWebImageDownloaderRequestModifier convenient API usage
* Fix the implementation on iOS for per-image-request-header-setup. Should not use `SDWebImageDownloader` which manage the global shared headers. Use the context option of request modifier.
* Add the support for data:image URL for WebP images
* Alaways bypass invalid SSL certificate error, same behavior like React-Native itself
* Fix the implementation of request modifier on SDWebImage, which have bugs on 5.8.0 (will fix in 5.8.1), revert the dependency bump
* Revert the changes to bypass SSL error
* Remove the unused Podfile.lock changes
2020-07-17 01:27:57 -04:00
fzyzcjy ae47bff4de feat: Add cookie support for iOS. (#284)
BREAKING CHANGE: This changes how network requests are handled on iOS. Make sure they still work for you.
2019-10-20 15:54:43 -04:00
Dylan Vann 0326c3ebbb fix: Loading images by reverting "bug: Use device scale when loading images.".
fix #509

This reverts commit 5cb5d6bab3.
2019-07-02 21:31:03 -04:00
Dylan Vann 11f6047658 fix: Fix incorrect syntax. 2019-06-27 23:44:49 -04:00
Shingo YAMADE 5597ed0dad fix: Fix setting props order issue for iOS. (#303)
fix #304
2019-06-27 21:39:21 -04:00
Todd Berman 5cb5d6bab3 bug: Use device scale when loading images. 2019-06-24 21:20:32 -04:00
DreamPiggy 8a216e2079 feat: Upgrade to SDWebImage 5.0. (#454)
This uses SDAnimatedImageView instead of FLAnimatedImageView for better animation support.

BREAKING CHANGE: Upgrade SDWebImage, may affect some projects and CocoaPods users.

Fix the bug of `cacheOnly` behavior

fix #447
2019-05-07 22:06:53 -04:00
Dylan Vann 03c50f026c feat: Add tint color support.
fix #124
2019-05-02 20:41:42 -07:00
Dylan Vann 292223d0ff revert: Remove functionality for notifying other images on load. (#452) 2019-04-22 22:20:42 -04:00
Steven Masini 70be74432d fix: Fix memory leak on iOS. (#433)
It's recommended to never retain the strong reference to self into blocks.

Blocks maintain strong references to any captured objects, including self, which means that it’s easy to end up with a strong reference cycle.

[skip release]
2019-04-22 22:07:45 -04:00
Dylan Vann cf9a595ee9 Add cache control for iOS. 2018-06-13 23:47:10 -04:00
Dylan Vann fddee2c583 Show local images.
Show local images on iOS and Android.
2018-06-09 22:12:56 -04:00
Dylan Vann 7a34ed3ec9 Add resizeMode examples and refactor. 2018-05-09 22:52:03 -04:00
Dylan Vann c786be22a5 Refactor onLoad event. 2018-04-19 01:54:32 -04:00
李根 9d7ee9ce78 fix bug :https://github.com/DylanVann/react-native-fast-image/issues/181
Dimensions not being passed to onLoad() #181
2018-04-16 17:41:33 +08:00
Dylan Vann 60130cb326 Move width and height to onLoad. Document dimensions event. 2018-03-17 20:05:24 -04:00
Dylan Vann 709312725f Call onLoadEnd regardless of if onFastImageError is defined.
onLoadEnd should always be called.
Thanks to @kdong007 for pointing this issue out.
2018-03-17 02:42:52 -04:00
Dylan Vann 8279ecda47 Merge pull request #107 from jeremyclee/resource-info-onloadend
Added resource width and height information to the onFastImageLoad an…
2018-03-11 19:35:21 -04:00
Jeremy Lee a3b56dd8b6 added width and height to load end in iOS 2018-03-09 15:38:09 -08:00
Dylan Vann 763e811893 Fix merge issues. 2018-03-07 23:12:10 -05:00
Dylan Vann fd5e7357fa Merge branch 'master' into dh-ensure-on-load-end-and-on-load-get-called 2018-03-07 23:10:43 -05:00
Dylan Vann 8cafd670bf Make property names consistent and add example. 2018-03-07 23:04:28 -05:00
Dan Hodos d9f7299154 iOS: Ensure onLoad and onLoadEnd get called
Setting properties from JS to native components does not guarantee any
order (as far as I know). Because of this, `setSource` can get called
and complete before `setOnFastImageLoad` and `setOnFastImageLoadEnd`,
which results in the callbacks never firing.

This change implements a simple check for these callback properties
getting set after the image has loaded, and fires them at that time.
2018-03-07 22:10:23 -05:00
Dan Hodos ddebbc146b iOS: Ensure onLoad and onLoadEnd get called
Setting properties from JS to native components does not guarantee any
order (as far as I know). Because of this, `setSource` can get called
and complete before `setOnFastImageLoad` and `setOnFastImageLoadEnd`,
which results in the callbacks never firing.

This change implements a simple check for these callback properties
getting set after the image has loaded, and fires them at that time.
2017-10-19 11:48:22 -05:00
Dylan Vann 1666f7c4e5 Make android and iOS view loading events conform to API of React Native's Image.
This will make using this library as a drop in replacement easier.
This commit also fixes some issues in the android progress implementation.
2017-07-25 00:44:08 -04:00
Dylan Vann 6c720f5020 Fix iOS progress implementation to conform to React Native's image.
Includes:

- onLoadStart
- onProgress
- onError
- onLoad
- onLoadEnd

Also changes to use the prop-types package.
2017-07-23 22:28:35 -04:00
Dylan Vann ad4d8a5fe6 Add progress events for iOS. 2017-07-03 21:58:24 -04:00
Dylan Vann e98bacc84f Fix onLoad and onError on iOS. 2017-04-18 11:57:18 -04:00
Dylan Vann bd6cb0cae4 Remove cancellation code since sd_setImageWithURL already handles cancellation. 2017-04-18 10:53:30 -04:00
Dylan Vann 1ee6d37bd4 🚩 Initial commit. 2017-04-17 18:42:16 -04:00