Skip to content

Commit 4d0034a

Browse files
committed
Fix color issue for icons
1 parent 848d74d commit 4d0034a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

example/IconsScreen.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const App = () => {
5252
paddingBottom: 20,
5353
fontWeight: '600',
5454
fontSize: 30,
55+
textAlign: 'center'
5556
}}>
5657
react-native-ionicons
5758
</Text>

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ export function Icon({name, size, color}) {
55
height: size,
66
width: size,
77
fill: color,
8+
color: color,
89
}) : Icons[name]({
910
height: size,
1011
width: size,
1112
fill: color,
13+
color: color,
1214
})
1315
}

0 commit comments

Comments
 (0)