36 Commits
Author SHA1 Message Date
Dylan Vann 68db8712bf fix: FastImage extends ViewProps (#829)
fix #819
2021-09-27 15:53:25 +07:00
Federico Joel Orlandau d69f692159 fix: export FastImageStaticProperties (#822) 2021-09-15 05:04:44 +07:00
Woraphot Chokratanasombat 818ed0c3f5 feat: add clear image cache from memory and disk (#425) 2021-09-15 04:55:31 +07:00
JP 22f89e43a4 fix: accessibilityIgnoresInvertColors prop not recognised when using TypeScript (#666)
- in testing [eslint-plugin-react-native-a11y](https://github.com/FormidableLabs/eslint-plugin-react-native-a11y) with `react-native-fast-image`, I noticed that a11y props such as `accessibilityIgnoresInvertColors` are missing from FastImage's TypeScript definitions
- in theory the "proper" fix for this would be to make `FastImageProps` extend `ImagePropsBase` from React Native, because ultimately FastImage [spreads Props down](https://github.com/DylanVann/react-native-fast-image/blob/master/src/index.tsx#L150-L160) to React Native's Image component (including a11y props)
- attempting this "proper" fix proved problematic in practice due to incompatibilities between the two interfaces
- instead rather than extending the entirety of `ImagePropsBase` (which itself extends `AccessibilityProps`) we can resolve this by simply also extending `AccessibilityProps`
2020-07-17 01:15:49 -04:00
Milan Susnjar ba0f238821 fix: remove cache property if using fallback
iOS image has its own properties for cache and if fallback
is true and regular image is being rendered we can't set
FastImage's cache value because it doesn't match.
2020-07-17 01:08:10 -04:00
Lucas Vieira e33664fbcf feat: export ResizeMode and Priority types (#678) 2020-07-16 23:50:48 -04:00
lgenzelisandLucas Genzelis 94e2256da2 fix: wrong cache type (#688) [skip ci]
Co-authored-by: Lucas Genzelis <lucas@foxbox.com>
2020-07-16 22:24:51 -04:00
Dylan Vann c279577f95 build: use dv-scripts (#707)
- Simplifying configuration for:
  - Building
  - Linting
  - Testing
  - Releasing

I'll fix code coverage in an upgrade.
2020-07-16 21:28:12 -04:00
Jose G 6abb273ce5 fix: Replace 'Component' with 'ComponentType' (#647) 2020-03-12 00:56:12 -04:00
Dylan Vann ac117060eb feat: converts to TypeScript (#642)
This converts the codebase to TypeScript. Compilation and bundling is done with tsdx. This will
hopefully ensure our types are more accurate in the future.
2020-03-08 20:44:22 -04:00
Dylan Vann 44a4c8b340 fix: Fix peer dependency and remove prop-types. 2019-07-05 19:12: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 fa62474ec4 chore: Update dependencies. 2019-07-02 20:44:44 -04:00
Mamoru Amano 4adf42f935 fix: Add tintColor type definition. 2019-06-03 19:47:03 -04:00
Dylan Vann 03c50f026c feat: Add tint color support.
fix #124
2019-05-02 20:41:42 -07:00
Dylan Vann 5c2b4afa41 perf: Use React.memo for FastImage. (#449) 2019-04-20 21:53:00 -04:00
Dylan Vann 2b4fba3ad8 feat: Use forwardRef to allow access to ref.measure and others. (#419)
This uses forwardRef to allow access to the View that wraps the native FastImage component.

closes #69
2019-02-25 01:40:39 -05:00
Dylan Vann 487d41040d fix: Fix fallback prop not working. (#420) 2019-02-25 01:33:21 -05:00
Dylan Vann f4696c26b4 chore: Test fallback prop. (#413) 2019-02-22 00:10:33 -05:00
Dylan Vann e13db7d409 fix: Fixes cacheControl types. (#382)
fix #325
2018-12-30 21:38:13 -05:00
Dylan Vann 4f4a5b5b1c style: Use prettier to format more files. (#381) 2018-12-30 21:29:08 -05:00
Dylan Vann 47e36edc24 Fix local images in production builds. (#324)
* Revert changes to make yarn link work.

* Fixed local images in production builds.

This closes #273, closes #296, closes #246.

* Remove unused code and fix some warnings.
2018-10-23 00:58:35 -04:00
David Narbutovich(g) ba447531ac Fix flow types (#320) 2018-10-21 20:50:47 -04:00
Dylan Vann 7ffc841ed8 Fix cacheControl property in TypeScript types. (#310) 2018-10-14 18:49:30 -04:00
David Narbutovich 11c7e9e865 Add Flow type definitions.
* Add flow definitions

* Fix export default
2018-09-23 17:27:57 -04:00
Dylan Vann e66d7e0b1f Remove unused import in TypeScript types. 2018-09-23 17:25:30 -04:00
David Narbutovich c265c7a79a Fix TypeScript types for fallback. 2018-09-23 17:12:34 -04:00
Emanuel Quimper 0c7e323ef0 Add cache enum types. 2018-09-23 17:02:13 -04:00
Laurin Quast b8c82c7d5e Allow overwriting imageContainer styles.
Closes #286
2018-09-23 17:00:41 -04:00
David Narbutovich 0f78b13d13 Remove unnecessary import. 2018-09-23 01:43:11 -04:00
Ben Wildeman d142379e6f make sure headers only accepts key value pairs (#229) 2018-08-22 23:23:03 -04:00
Dylan Vann cf9a595ee9 Add cache control for iOS. 2018-06-13 23:47:10 -04:00
Dylan Vann 30a2ff7909 Add fallback option. 2018-06-13 20:34:30 -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 01d52e4363 More refactoring. 2018-05-24 12:24:47 -04:00
Dylan Vann a6f7b109aa Refactor project. Ignore more files. 840.7 kB package size. 2018-05-24 11:52:33 -04:00