|
1 | 1 | import React, { useState, memo, useMemo } from 'react'
|
2 |
| -import { capitalize, isEmpty, find } from 'lodash' |
| 2 | +import { isEmpty, find } from 'lodash' |
3 | 3 | import { View, FlatList, Text, TouchableOpacity, TextInput, ScrollView } from 'react-native'
|
4 | 4 | import Colors from './src/constants/Colors'
|
5 | 5 | import Icon from './src/components/Icon'
|
@@ -40,7 +40,7 @@ function SelectBox({
|
40 | 40 | color: 'rgba(60, 60, 67, 0.6)',
|
41 | 41 | ...optionsLabelStyle,
|
42 | 42 | }
|
43 |
| - return <Text style={kOptionsLabelStyle}>{capitalize(item)}</Text> |
| 43 | + return <Text style={kOptionsLabelStyle}>{item}</Text> |
44 | 44 | }
|
45 | 45 |
|
46 | 46 | function renderItem({ item }) {
|
@@ -116,7 +116,7 @@ function SelectBox({
|
116 | 116 | }
|
117 | 117 | return (
|
118 | 118 | <View style={kMultiOptionContainerStyle}>
|
119 |
| - <Text style={kMultiOptionsLabelStyle}>{capitalize(label.item)}</Text> |
| 119 | + <Text style={kMultiOptionsLabelStyle}>{label.item}</Text> |
120 | 120 | <TouchableOpacity style={{ marginLeft: 15 }} hitSlop={hitSlop} onPress={onPressItem()}>
|
121 | 121 | <Icon name="closeCircle" fill="#fff" width={21} height={21} />
|
122 | 122 | </TouchableOpacity>
|
@@ -216,7 +216,7 @@ function SelectBox({
|
216 | 216 | />
|
217 | 217 | ) : (
|
218 | 218 | <TouchableOpacity hitSlop={hitSlop} onPress={onPressShowOptions()}>
|
219 |
| - <Text style={kSelectedItemStyle()}>{capitalize(value.item) || label}</Text> |
| 219 | + <Text style={kSelectedItemStyle()}>{value.item || label}</Text> |
220 | 220 | </TouchableOpacity>
|
221 | 221 | )}
|
222 | 222 | </View>
|
|
0 commit comments