diff --git a/src/basic/Accordion.js b/src/basic/Accordion.js index 148c80e49..da5449984 100644 --- a/src/basic/Accordion.js +++ b/src/basic/Accordion.js @@ -23,6 +23,7 @@ const styles = StyleSheet.create({ class DefaultHeader extends React.Component { render() { const { + disable, expanded, expandedIcon, expandedIconStyle, @@ -41,7 +42,10 @@ class DefaultHeader extends React.Component { headerStyle || { backgroundColor: variables.headerStyle } ]} > - {title} + + {' '} + {title} + { onAccordionOpen && !expanded && onAccordionOpen(item, index); onAccordionClose && expanded && onAccordionClose(item, index); @@ -135,7 +142,7 @@ class AccordionItem extends React.Component { renderHeader(item, expanded, index) ) : ( String(index)} renderItem={({ item, index }) => ( this.setSelected(i)} /> )} {...this.props} diff --git a/src/theme/variables/commonColor.js b/src/theme/variables/commonColor.js index 72a69de37..2eda3e197 100644 --- a/src/theme/variables/commonColor.js +++ b/src/theme/variables/commonColor.js @@ -31,6 +31,7 @@ export default { contentStyle: '#f5f4f5', expandedIconStyle: '#000', accordionBorderColor: '#d3d3d3', + disableRow: '#a9a9a9', // ActionSheet elevation: 4, diff --git a/src/theme/variables/material.js b/src/theme/variables/material.js index cf0916216..51abd3ee1 100644 --- a/src/theme/variables/material.js +++ b/src/theme/variables/material.js @@ -26,6 +26,7 @@ export default { contentStyle: '#f5f4f5', expandedIconStyle: '#000', accordionBorderColor: '#d3d3d3', + disableRow: '#a9a9a9', // ActionSheet elevation: 4, @@ -180,14 +181,10 @@ export default { toolbarDefaultBorder: '#3F51B5', iosStatusbar: 'light-content', get statusBarColor() { - return color(this.toolbarDefaultBg) - .darken(0.2) - .hex(); + return color(this.toolbarDefaultBg).darken(0.2).hex(); }, get darkenHeader() { - return color(this.tabBgColor) - .darken(0.03) - .hex(); + return color(this.tabBgColor).darken(0.03).hex(); }, // Icon @@ -292,13 +289,13 @@ export default { topInset: 24, leftInset: 0, rightInset: 0, - bottomInset: 34 + bottomInset: 34, }, landscape: { topInset: 0, leftInset: 44, rightInset: 44, - bottomInset: 21 - } - } + bottomInset: 21, + }, + }, }; diff --git a/src/theme/variables/platform.js b/src/theme/variables/platform.js index 15dce382d..9c6d8ee10 100644 --- a/src/theme/variables/platform.js +++ b/src/theme/variables/platform.js @@ -28,6 +28,7 @@ export default { expandedIconStyle: '#000', headerStyle: '#edebed', iconStyle: '#000', + disableRow: '#a9a9a9', // ActionSheet elevation: 4,