diff --git a/src/HoloColorPicker.js b/src/HoloColorPicker.js
index d36f5f7..e201c78 100644
--- a/src/HoloColorPicker.js
+++ b/src/HoloColorPicker.js
@@ -163,7 +163,7 @@ export class HoloColorPicker extends React.PureComponent {
resizeMode='contain'
style={[styles.pickerImage]}
/>
-
+
{oldColor &&
}
- {!oldColor &&
+ {!oldColor && this.props.hideOldColor === false &&
}
-
+ { this.props.hideOldColor === false &&
+
{oldColor &&
+ }
)
}
@@ -295,10 +297,12 @@ TriangleColorPicker.propTypes = {
onColorSelected: PropTypes.func,
onOldColorSelected: PropTypes.func,
rotationHackFactor: PropTypes.number,
+ hideOldColor: PropTypes.bool,
}
TriangleColorPicker.defaultProps = {
rotationHackFactor: 100,
+ hideOldColor: false,
}
function getPickerProperties(pickerSize) {