Commit Graph

290 Commits

Author SHA1 Message Date
Kingsley Ochu 66c0e16795 Clear up unused imports 2017-11-14 12:27:40 +01:00
Kingsley Ochu ee408a9eb7 Add a custom request listener class 2017-11-14 11:48:16 +01:00
Kingsley Ochu 610a264e23 Refactor ViewManager to match glide 4 requirements 2017-11-14 11:46:42 +01:00
Kingsley Ochu 4625953e9d Implement LibraryGlideModule as GlideModule has been deprecated 2017-11-13 11:45:16 +01:00
Dylan Vann 17a5a7e96e Merge branch 'iRoachie-viewPropTypes' 2017-11-12 14:22:10 -05:00
Dylan Vann 1d9ca5aa7f Merge branch 'viewPropTypes' of https://github.com/iRoachie/react-native-fast-image into iRoachie-viewPropTypes 2017-11-12 14:21:29 -05:00
Kingsley Ochu 29741ea140 Update fastimage module to use RequestOptions 2017-11-12 11:44:08 +01:00
Kingsley Ochu 09b46283ea Upgrade glide, okhtt3 to 4.3.1 2017-11-11 11:42:49 +01:00
Dylan Vann d7d0038e49
Merge pull request #30 from iRoachie/fixes
Allow number as source
2017-11-05 23:13:29 -05:00
Wes Zheng 1d16c7c218 Fix for yarn not fetching git submodules 2017-10-30 19:22:48 -07:00
Wes Zheng 4e2dba4924 Minor import style fix 2017-10-30 19:22:29 -07:00
Wes Zheng 8859f63041 use application context to avoid deallocated view error when split screen on android 2017-10-20 10:40:06 -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
Ted de Koning c2bcb78fac Image resizing - Fixing resizemode support. 2017-09-15 16:38:34 +02:00
Dylan Vann f2d96719ac 1.0.0 2017-08-08 01:08:04 -04:00
Dylan Vann bdf86d0ebf 0.1.4 2017-08-07 23:53:37 -04:00
Dylan Vann f21522c409 Fix adding more views as listeners for a URL.
You cannot add items to a Collections.singleTonList...
2017-08-07 23:53:24 -04:00
Aaron Taylor 367024bcbd Remove override of createJSModules
Since of recently in master the unused createJSModules has been removed and ReactPackage's no longer contain the definition of createJSModules. There for it must be removed in order to not yield a compile error. This is breaking change.

facebook/react-native@ce6fb33
2017-08-07 23:24:59 -04:00
Dylan Vann d15c0722ed 0.1.3 2017-08-07 22:31:49 -04:00
Dylan Vann 7dae162bfb 0.1.2 2017-08-07 22:29:11 -04:00
Kyle 5c18fb656c Gracefully deprecate View.propTypes 2017-08-02 10:33:03 -04:00
Kyle 5f59333a8d Allow number as source 2017-08-02 10:25:09 -04:00
Dylan Vann d83b01e82c Update README.md 2017-07-30 21:55:21 -04:00
Dylan Vann 5831d22653 Merge pull request #18 from DylanVann/feat/progress
Feat/progress.
2017-07-26 22:29:55 -04:00
Dylan Vann a60fd67919 Fix style. 2017-07-26 22:25:23 -04:00
Dylan Vann 0629faccce 0.1.1 2017-07-26 22:04:05 -04:00
Dylan Vann aa6c1836e7 Fix android progress events. 2017-07-26 21:57:15 -04:00
Dylan Vann 5205ef4a4e 0.1.0 2017-07-26 21:45:01 -04:00
Dylan Vann 8953b5aecd Add test of multiple progress callbacks to example. 2017-07-26 21:33:21 -04: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 7e0b966595 Format with prettier. Remove PropTypes. Fix tests. 2017-07-05 04:22:59 -04:00
Dylan Vann c643347d4c Add android progress callback. 2017-07-05 04:10:21 -04:00
Dylan Vann ad4d8a5fe6 Add progress events for iOS. 2017-07-03 21:58:24 -04:00
Dylan Vann 02fd00c4a6 Update project to latest react native version. 2017-06-27 22:47:56 -04:00
Dylan Vann 46dab47e0c Update README. 2017-06-27 22:13:31 -04:00
Dylan Vann af13402d9b 0.0.11 2017-06-20 03:31:49 -04:00
Dylan Vann 5b2071bcdb 0.0.10 2017-06-20 03:31:37 -04:00
Dylan Vann 4e69ddd099 Merge branch 'fjcaetano-feature/prefetch' 2017-06-20 03:11:28 -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
Dylan Vann c21c24c4de Improve code style of examples.
Consts are preferable because readers don't have to think about potential
future code paths affecting the value.
2017-06-20 00:53:32 -04:00
Dylan Vann d2e13b958e Simplify start command. 2017-06-20 00:49:38 -04:00
Dylan Vann 1398551b19 Format with prettier. 2017-06-19 21:50:55 -04:00
Flávio Caetano 4c87fc0337 Enables prefetching images 2017-06-08 18:52:59 -03:00
Dylan Vann 1d25cb23a5 Update README.md 2017-05-04 03:31:01 -04:00
Dylan Vann 3141ee590f Fix TabBar in example. 2017-05-04 02:55:26 -04:00
Dylan Vann 5a93fee689 Update React Native and add gif support to iOS. 2017-05-04 02:45:28 -04:00
Dylan Vann ed3763fa94 Update README.md 2017-05-03 01:19:42 -04:00
Dylan Vann c3af8d87b6 0.0.9 2017-05-03 00:57:03 -04:00
Dylan Vann 7d77141bbc 0.0.8 2017-05-03 00:55:58 -04:00