Skip to content

Commit 8ed084a

Browse files
committed
πŸ‘¨πŸΌβ€πŸ’» Fix: #30
1 parent 84346c7 commit 8ed084a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

β€Žlib/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, memo, useMemo } from 'react'
2-
import { capitalize, isEmpty, find } from 'lodash'
2+
import { isEmpty, find } from 'lodash'
33
import { View, FlatList, Text, TouchableOpacity, TextInput, ScrollView } from 'react-native'
44
import Colors from './src/constants/Colors'
55
import Icon from './src/components/Icon'
@@ -40,7 +40,7 @@ function SelectBox({
4040
color: 'rgba(60, 60, 67, 0.6)',
4141
...optionsLabelStyle,
4242
}
43-
return <Text style={kOptionsLabelStyle}>{capitalize(item)}</Text>
43+
return <Text style={kOptionsLabelStyle}>{item}</Text>
4444
}
4545

4646
function renderItem({ item }) {
@@ -116,7 +116,7 @@ function SelectBox({
116116
}
117117
return (
118118
<View style={kMultiOptionContainerStyle}>
119-
<Text style={kMultiOptionsLabelStyle}>{capitalize(label.item)}</Text>
119+
<Text style={kMultiOptionsLabelStyle}>{label.item}</Text>
120120
<TouchableOpacity style={{ marginLeft: 15 }} hitSlop={hitSlop} onPress={onPressItem()}>
121121
<Icon name="closeCircle" fill="#fff" width={21} height={21} />
122122
</TouchableOpacity>
@@ -216,7 +216,7 @@ function SelectBox({
216216
/>
217217
) : (
218218
<TouchableOpacity hitSlop={hitSlop} onPress={onPressShowOptions()}>
219-
<Text style={kSelectedItemStyle()}>{capitalize(value.item) || label}</Text>
219+
<Text style={kSelectedItemStyle()}>{value.item || label}</Text>
220220
</TouchableOpacity>
221221
)}
222222
</View>

β€Žlib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-multi-selectbox",
3-
"version": "1.4.7",
3+
"version": "1.4.8",
44
"description": "Platform independent (Android / iOS) Selextbox | Picker | Multi-select | Multi-picker. The idea is to bring out the common user-interface & user-experience on both platforms..",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
Β (0)