Skip to content

Commit

Permalink
Merge pull request #21 from sauzy34/develop
Browse files Browse the repository at this point in the history
☑️ Fix #20
  • Loading branch information
sauzy34 authored Nov 4, 2020
2 parents b57c6d2 + 22ceab3 commit 343d900
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
27 changes: 22 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ function SelectBox({
const [showOptions, setShowOptions] = useState(false)

function renderLabel(item) {
const kOptionsLabelStyle = { fontSize: 17, color: 'rgba(60, 60, 67, 0.6)', ...optionsLabelStyle }
const kOptionsLabelStyle = {
fontSize: 17,
color: 'rgba(60, 60, 67, 0.6)',
...optionsLabelStyle
}
return <Text style={kOptionsLabelStyle}>{capitalize(item)}</Text>
}

Expand Down Expand Up @@ -89,7 +93,7 @@ function SelectBox({
const label = find(options, o => o.id === item.id)
const kMultiOptionContainerStyle = {
flexDirection: 'row',
borderRadius: '20px',
borderRadius: 20,
paddingVertical: 5,
paddingRight: 5,
paddingLeft: 10,
Expand All @@ -100,7 +104,11 @@ function SelectBox({
flexGrow: 1,
...multiOptionContainerStyle
}
const kMultiOptionsLabelStyle = { fontSize: 10, color: '#fff', ...multiOptionsLabelStyle }
const kMultiOptionsLabelStyle = {
fontSize: 10,
color: '#fff',
...multiOptionsLabelStyle
}
return (
<View style={kMultiOptionContainerStyle}>
<Text style={kMultiOptionsLabelStyle}>{capitalize(label.item)}</Text>
Expand Down Expand Up @@ -131,7 +139,11 @@ function SelectBox({
)

function multiListEmptyComponent() {
const kMultiListEmptyLabelStyle = { fontSize: 17, color: 'rgba(60, 60, 67, 0.3)', ...multiListEmptyLabelStyle }
const kMultiListEmptyLabelStyle = {
fontSize: 17,
color: 'rgba(60, 60, 67, 0.3)',
...multiListEmptyLabelStyle
}
return (
<TouchableOpacity
width="100%"
Expand All @@ -155,7 +167,12 @@ function SelectBox({
</View>
)
}
const kLabelStyle = { fontSize: 12, color: 'rgba(60, 60, 67, 0.6)', paddingBottom: 4, ...labelStyle }
const kLabelStyle = {
fontSize: 12,
color: 'rgba(60, 60, 67, 0.6)',
paddingBottom: 4,
...labelStyle
}

const kContainerStyle = {
flexDirection: 'row',
Expand Down
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-multi-selectbox",
"version": "1.4.0",
"version": "1.4.1",
"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..",
"repository": {
"type": "git",
Expand Down

0 comments on commit 343d900

Please # to comment.