warn message in slider updated

This commit is contained in:
NikolaBorislavovHristov 2018-11-16 16:00:57 +02:00
parent 5614ffeed1
commit c2a44a5a9b

View file

@ -6,7 +6,7 @@ import styles from './styles';
class Slider extends Component {
componentWillReceiveProps(nextProps) {
if (this.props.orientation !== nextProps.orientation) {
console.warn('changing orientation property at runtime is not supported');
console.warn(new Error('changing orientation property at runtime is not supported'));
}
}