20 Commits

Author SHA1 Message Date
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
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
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