Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-platform tint color support #226

Merged
merged 16 commits into from
May 3, 2019

Conversation

millibeckers
Copy link

@millibeckers millibeckers commented Jun 21, 2018

I needed this for a project that I was working on and it will also resolve this issue #124

@millibeckers
Copy link
Author

Merged master and now passes CI

@millibeckers
Copy link
Author

@DylanVann have you had a chance to give this a look to merge it in? I don't want to have to keep doing merges 😅

@ghost
Copy link

ghost commented Oct 10, 2018

@DylanVann Any plans to merge this? We also need this functionality

@VinceBT
Copy link

VinceBT commented Oct 25, 2018

@DylanVann Can you merge this ?

@Brianvdb
Copy link

@DylanVann Lets merge this Dylan

@stanvanheumen
Copy link

@DylanVann When is this scheduled to be merged?

@wfolini
Copy link

wfolini commented Dec 10, 2018

@DylanVann Any news about this?

@Brianvdb
Copy link

@DylanVann Any news?

@nehacs09
Copy link

@DylanVann What are the plans to merge this?

@barghi
Copy link

barghi commented Dec 30, 2018

Hey guys do you have any plan to merge this ?

@stokesbga
Copy link

on iOS, resetting tintColor to null does not work, and instead persists the previously set tintColor.

@stokesbga
Copy link

if you add

- (void)setImageColor:(UIColor *)imageColor {
    if (imageColor != nil) {
        _imageColor = imageColor;
        super.image = [self makeImage:super.image withTint:self.imageColor];
    } else {
        super.image = _imageBackup;
    }
}

- (void)setImage:(UIImage *)image {
    if (self.imageColor != nil) {
        super.image = [self makeImage:image withTint:self.imageColor];
    } else {
        _imageBackup = image;
        super.image = image;
    }
}

then it works, but I dont like the idea of storing two copies...

@OlivierFreyssinet-old
Copy link

Is this gonna be merged soon ? Really need this 😁

@ericvicenti
Copy link

ericvicenti commented Mar 13, 2019

One day this will be merged and I will be able to migrate away from the fork 😂

https://www.npmjs.com/package/react-native-fast-image-with-tint-color

Edit: although, it looks like this PR adds tintColor as a prop. When really it should be a style prop.

@DimitryDushkin
Copy link

@DylanVann please?)

@Fabian-Fynn
Copy link

@DylanVann can we please merge this?

@Maddoc42
Copy link

Second that 👍

If a merge is not possible, @emilyjbeckers any chances we can hope for an updated version of your fork? v5.3.0 was recently released which addresses some memory issues on iOS (#433) 😇

@DylanVann
Copy link
Owner

I third that. @DylanVann please!

@DylanVann DylanVann changed the base branch from master to tint-color May 3, 2019 03:07
@DylanVann DylanVann merged commit ad97e47 into DylanVann:tint-color May 3, 2019
@DylanVann
Copy link
Owner

@emilyjbeckers, sorry it took so long, thank you!

@DylanVann
Copy link
Owner

@ericvicenti If this was made into a style prop we'd be forced to call https://facebook.github.io/react-native/docs/stylesheet#flatten on each render right? Wouldn't that be worse for performance, or is there another way you know of working it out?

@chrisfahy
Copy link

if this library could be maintained it would help my project considerably. i am a noob so cant help. only been programming 6 mths. but please know ppl use it and it was working amazingly

@DylanVann
Copy link
Owner

@chrisfahy This feature has been merged and released, check the releases page.

@chrisfahy
Copy link

i am having issues with memory pressure and am thinking its with fast image. any ideas for me? or can you recommend another library like this one? cheers for your time

@DylanVann
Copy link
Owner

You could try upgrading, a memory leak was fixed recently. Alternatively:

  • Open a new issue with more information.
  • Resize your images server side if they're too big.
  • Use Image.
  • Use native image loading libraries directly.

@chrisfahy
Copy link

Thank you @DylanVann. will try that this morning. i appreciate the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.