Skip to content

Commit ed2a0b3

Browse files
committed
Change the check mark with rnvi
1 parent 73f54df commit ed2a0b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/form/support/OptionItem.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import { View } from 'react-native';
33
import { Text } from 'react-native';
4+
import Icon from 'react-native-vector-icons/FontAwesome';
45

56
const OptionItem = ({ label, color, name }, active) => {
67
return (
@@ -17,9 +18,11 @@ const OptionItem = ({ label, color, name }, active) => {
1718
<Text
1819
style={{
1920
color: color || active ? 'white' : 'black',
21+
flexDirection: 'row',
22+
alignItems: 'center',
2023
}}
2124
>
22-
{active && '✔'} {label || name}
25+
{active && <Icon name="check" size={20} color="#000" />} {label || name}
2326
</Text>
2427
</View>
2528
</View>

0 commit comments

Comments
 (0)