From 4c9eef99e7fea8ce74b58b3c562029450e5faa17 Mon Sep 17 00:00:00 2001 From: Mikael Sand Date: Sun, 13 May 2018 18:42:08 +0300 Subject: [PATCH] Fix warnings when used in react-native-web Warning: React does not recognize the `animateTransitions` prop on a DOM element. Warning: React does not recognize the `animationType` prop on a DOM element. Warning: React does not recognize the `thumbTouchSize` prop on a DOM element. Unknown event handler property `onValueChange`. It will be ignored. --- src/Slider.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Slider.js b/src/Slider.js index 37deee53..d02d812e 100644 --- a/src/Slider.js +++ b/src/Slider.js @@ -228,6 +228,10 @@ export default class Slider extends PureComponent { trackStyle, thumbStyle, debugTouchArea, + onValueChange, + thumbTouchSize, + animationType, + animateTransitions, ...other } = this.props; var {value, containerSize, trackSize, thumbSize, allMeasured} = this.state;