akveo / react-native-ui-kitten

:boom: React Native UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/react-native-ui-kitten/
MIT License
10.33k stars 954 forks source link

PNG Icons color changed Issue. #660

Closed ImAbhishekTomar closed 5 years ago

ImAbhishekTomar commented 5 years ago

Hi,

I am setting up color google png icon on button, but this icon color change when button render.

Screenshot 2019-10-03 at 17 04 12 Screenshot 2019-10-03 at 17 04 30

32penkin commented 5 years ago

Hi @ImAbhishekTomar! What icon color do you need?

artyorsh commented 5 years ago

@ImAbhishekTomar I suggest using icons module. If you're using Kitten Tricks code base, it uses the same icons, but in png format

Manne010 commented 4 years ago

am also facing same issue because in need to use external Icon(not available in eva-icons). Any Help? @ImAbhishekTomar and @artyorsh

artyorsh commented 4 years ago

@Manne010 you can ignore the styles passed to the icon (since it is a function with a style argument)

import { Button, Icon } from 'react-native-ui-kitten';

const StarIconWitoutStyles = (style) => (
  <Icon name='star' width={24} height={24} />
);

const StarButton = () => (
  <Button icon={StarIconWitoutStyles} />
);