Commit Graph

52 Commits

Author SHA1 Message Date
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 5489f9ec4b
feat: Upgrade to React Native 0.60.0 / CocoaPods / Android X. (#513)
BREAKING CHANGE: You should upgrade React Native. See https://facebook.github.io/react-native/blog/2019/07/03/version-60
2019-07-04 23:49:38 -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
jordi domenech 6805972159 feat: Add tvOS target. (#486) 2019-06-30 01:41:33 -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 5016172cfc fix: Upgrade vendored SDWebImage to v5.0.5.
- Upgrade vendored SDWebImage to v5.0.5.
- Fixes the Archive issue for applications that don't use CocoaPods.

fix #489
2019-06-03 13:26:39 -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 97630c8ee4
fix: Fixes WebP rendering on iOS 12. (#412)
fixes issue #298 #385
2019-02-22 00:37:12 -05: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
bluekurk 6ed1c674c2 * sync initial resizeMode & contentMode (#193) 2018-05-09 22:50:51 -04:00
Dylan Vann 6c6526e4e7 Don't use SYMROOT and BUILT_PRODUCTS_DIR in HEADER_SEARCH_PATHS.
These are not necesary and can lead to less deterministic builds.
2018-05-09 22:12:24 -04:00
Dylan Vann ac00fdaa63 Fix other FLAnimatedImage header path. 2018-04-24 21:37:05 -04:00
Dylan Vann 084a41497d Use conditional import. 2018-04-24 20:25:22 -04:00
Dylan Vann a2d9fe2c71 Remove FLAnimatedImage from FastImage project. 2018-04-21 19:51:15 -04:00
Dylan Vann 883dc0664d Fix FLAnimatedImage header search path. 2018-04-21 19:50:57 -04:00
Dylan Vann e7ba4a7f78 Set ALWAYS_SEARCH_USER_PATHS to NO.
This option is now deprecated.
2018-04-21 19:19:01 -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 8e7ae60284 Setup cocoapods example. 2018-03-17 23:25:49 -04:00
Dylan Vann 60130cb326 Move width and height to onLoad. Document dimensions event. 2018-03-17 20:05:24 -04:00
Dylan Vann eb78e9c2cd
Merge pull request #111 from OceanHorn/search_paths
Adding `Header Search Paths` to solve problems when:
2018-03-17 19:50:39 -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
GuoYufu f2043591bf Add `Header Search Paths` to solve problems when:
1. Native iOS app integrate react native from `Podfile` and integrate this library from `package.json`.
2. In react native 0.51, pure react native iOS app integrate react native from `Podfile` and integrate this library from `Libraries`.
2017-12-16 00:41:39 +08:00
Dylan Vann a388be82cd Use global import syntax. 2017-11-29 23:23:46 -05:00
Dylan Vann ddd57d32e1 Change to prepare script, remove changes to SDWebImage. 2017-11-29 22:29:43 -05:00
Wes Zheng 4e2dba4924 Minor import style fix 2017-10-30 19:22:29 -07: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 46e08b46e2 Update to support preloading sources.
Sources for preloading have the same keys as the source prop.
Also update readme to document preloading.
2017-06-20 03:10:56 -04:00
Flávio Caetano 4c87fc0337 Enables prefetching images 2017-06-08 18:52:59 -03:00
Dylan Vann 5a93fee689 Update React Native and add gif support to iOS. 2017-05-04 02:45:28 -04:00
Dylan Vann 77cd58a272 Fix Xcode project. 2017-04-28 11:13:56 -04:00
Dylan Vann 6411ccf7da Add header search paths to library project. 2017-04-28 10:51:38 -04:00
Dylan Vann 494b8db09c Move Libraries to Vendor. 2017-04-28 10:47:30 -04:00
Dylan Vann e98bacc84f Fix onLoad and onError on iOS. 2017-04-18 11:57:18 -04:00