React-native-fast-image: Add support for tintColor.

Created on 19 Jan 2018  路  6Comments  路  Source: DylanVann/react-native-fast-image

I tried to apply the the style tintColor on the FastImage, but it seems that this style is not supported, I need to change a PNG color dynamic in code, but I also want to use this wonderful library instead the native Image component.

feature

Most helpful comment

Hey @GuillaumeMunsch, I think it is not yet supported

Someone implemented it and made a PR #226, but still waiting for the merge.

All 6 comments

Hi! Same here :)

It's not currently supported. You could add a semitransparent view over the image.

It may eventually be supported but it's not a high priority at the moment.

as far as I can tell it works, but you're throwing a warning anyway

Add this somewhere in one of the root files to ignore the warning:

YellowBox.ignoreWarnings([
  'Warning: Failed prop type: Invalid props.style key `tintColor` supplied to `FastImage`',
]);

In the new 5.x.x version tintColor doesn't work anymore

Hey @GuillaumeMunsch, I think it is not yet supported

Someone implemented it and made a PR #226, but still waiting for the merge.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skleest picture skleest  路  3Comments

guihouchang picture guihouchang  路  4Comments

Andarius picture Andarius  路  3Comments

taschik picture taschik  路  3Comments

StiffFy picture StiffFy  路  3Comments