Skip to content

Commit 343d900

Browse files
authored
Merge pull request #21 from sauzy34/develop
☑️ Fix #20
2 parents b57c6d2 + 22ceab3 commit 343d900

2 files changed

Lines changed: 23 additions & 6 deletions

File tree

lib/index.js

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ function SelectBox({
3434
const [showOptions, setShowOptions] = useState(false)
3535

3636
function renderLabel(item) {
37-
const kOptionsLabelStyle = { fontSize: 17, color: 'rgba(60, 60, 67, 0.6)', ...optionsLabelStyle }
37+
const kOptionsLabelStyle = {
38+
fontSize: 17,
39+
color: 'rgba(60, 60, 67, 0.6)',
40+
...optionsLabelStyle
41+
}
3842
return <Text style={kOptionsLabelStyle}>{capitalize(item)}</Text>
3943
}
4044

@@ -89,7 +93,7 @@ function SelectBox({
8993
const label = find(options, o => o.id === item.id)
9094
const kMultiOptionContainerStyle = {
9195
flexDirection: 'row',
92-
borderRadius: '20px',
96+
borderRadius: 20,
9397
paddingVertical: 5,
9498
paddingRight: 5,
9599
paddingLeft: 10,
@@ -100,7 +104,11 @@ function SelectBox({
100104
flexGrow: 1,
101105
...multiOptionContainerStyle
102106
}
103-
const kMultiOptionsLabelStyle = { fontSize: 10, color: '#fff', ...multiOptionsLabelStyle }
107+
const kMultiOptionsLabelStyle = {
108+
fontSize: 10,
109+
color: '#fff',
110+
...multiOptionsLabelStyle
111+
}
104112
return (
105113
<View style={kMultiOptionContainerStyle}>
106114
<Text style={kMultiOptionsLabelStyle}>{capitalize(label.item)}</Text>
@@ -131,7 +139,11 @@ function SelectBox({
131139
)
132140

133141
function multiListEmptyComponent() {
134-
const kMultiListEmptyLabelStyle = { fontSize: 17, color: 'rgba(60, 60, 67, 0.3)', ...multiListEmptyLabelStyle }
142+
const kMultiListEmptyLabelStyle = {
143+
fontSize: 17,
144+
color: 'rgba(60, 60, 67, 0.3)',
145+
...multiListEmptyLabelStyle
146+
}
135147
return (
136148
<TouchableOpacity
137149
width="100%"
@@ -155,7 +167,12 @@ function SelectBox({
155167
</View>
156168
)
157169
}
158-
const kLabelStyle = { fontSize: 12, color: 'rgba(60, 60, 67, 0.6)', paddingBottom: 4, ...labelStyle }
170+
const kLabelStyle = {
171+
fontSize: 12,
172+
color: 'rgba(60, 60, 67, 0.6)',
173+
paddingBottom: 4,
174+
...labelStyle
175+
}
159176

160177
const kContainerStyle = {
161178
flexDirection: 'row',

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.0",
3+
"version": "1.4.1",
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)