From a7a0a384d3f591c6d08188ae84eabfa89b158145 Mon Sep 17 00:00:00 2001 From: Cristi Date: Thu, 9 Aug 2018 16:05:06 +0300 Subject: [PATCH] thumbStyle - transform The transform style prop should not overwrite the user defined transform props. eg: will now work correctly. --- src/Slider.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Slider.js b/src/Slider.js index f2c43654..08e131f5 100644 --- a/src/Slider.js +++ b/src/Slider.js @@ -294,7 +294,10 @@ export default class Slider extends PureComponent { mainStyles.thumb, thumbStyle, { - transform: [{ translateX: thumbLeft }, { translateY: 0 }], + transform: [ + { translateX: thumbLeft }, { translateY: 0 }, + ...(thumbStyle && thumbStyle.transform || []), + ], ...valueVisibleStyle, }, ]}