Skip to content

Commit

Permalink
feat: expand the color prop to include all color representations (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhhayashi committed Aug 4, 2022
1 parent e95a5a2 commit 556b8d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { createContext } from 'react';
import { StyleProp, ViewStyle } from 'react-native';
import { ColorValue, StyleProp, ViewStyle } from 'react-native';

export type IconWeight =
| 'thin'
Expand All @@ -9,10 +9,10 @@ export type IconWeight =
| 'fill'
| 'duotone';

export type PaintFunction = (color: string) => React.ReactNode | null;
export type PaintFunction = (color: ColorValue) => React.ReactNode | null;

export interface IconProps {
color?: string;
color?: ColorValue;
size?: string | number;
weight?: IconWeight;
style?: StyleProp<ViewStyle>;
Expand Down

0 comments on commit 556b8d9

Please sign in to comment.