react-native-wheel-color-picker
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -195,3 +195,3 @@ // @flow | ||
sliderLoadingIndicator: null, // slider image loading component eg: <ActivityIndicator /> | ||
useNativeDriver: false, // to use useNativeDriver for animations | ||
useNativeDriver: false, // to use useNativeDriver for animations if possible | ||
useNativeLayout: false, // to use onLayoutEvent.nativeEvent.layout instead of measureInWindow for x, y, width, height values for wheel and slider measurements which may be useful to prevent some layout problems | ||
@@ -314,3 +314,3 @@ disabled: false, // disable all interactions | ||
{ | ||
useNativeDriver: !!props.useNativeDriver, | ||
useNativeDriver: false, | ||
listener: this.updateHueSaturation | ||
@@ -330,3 +330,3 @@ } | ||
{ | ||
useNativeDriver: !!props.useNativeDriver, | ||
useNativeDriver: false, | ||
listener: this.updateValue | ||
@@ -351,3 +351,3 @@ } | ||
toValue: 1, | ||
useNativeDriver: !!this.props.useNativeDriver, | ||
useNativeDriver: false, | ||
duration: 500, | ||
@@ -364,3 +364,3 @@ }).start(x => { | ||
toValue: 1, | ||
useNativeDriver: !!this.props.useNativeDriver, | ||
useNativeDriver: false, | ||
duration: 500, | ||
@@ -551,8 +551,8 @@ }).start(x => { | ||
if (who_hs || !specific) anims.push(//{// | ||
Animated.spring(this.panX, { toValue: left, useNativeDriver: !!this.props.useNativeDriver, friction: 90 }),//.start()// | ||
Animated.spring(this.panY, { toValue: top, useNativeDriver: !!this.props.useNativeDriver, friction: 90 }),//.start()// | ||
Animated.spring(this.panX, { toValue: left, useNativeDriver: false, friction: 90 }),//.start()// | ||
Animated.spring(this.panY, { toValue: top, useNativeDriver: false, friction: 90 }),//.start()// | ||
)//}// | ||
if (who_v || !specific) anims.push(//{// | ||
Animated.spring(this.slideX, { toValue: range, useNativeDriver: !!this.props.useNativeDriver, friction: 90 }),//.start()// | ||
Animated.spring(this.slideY, { toValue: range, useNativeDriver: !!this.props.useNativeDriver, friction: 90 }),//.start()// | ||
Animated.spring(this.slideX, { toValue: range, useNativeDriver: false, friction: 90 }),//.start()// | ||
Animated.spring(this.slideY, { toValue: range, useNativeDriver: false, friction: 90 }),//.start()// | ||
)//}// | ||
@@ -559,0 +559,0 @@ Animated.parallel(anims).start() |
{ | ||
"name": "react-native-wheel-color-picker", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A color picker component for react native", | ||
@@ -5,0 +5,0 @@ "main": "ColorPicker.js", |
@@ -63,2 +63,6 @@ # React Native Wheel Color Picker | ||
### 1.3.1 | ||
- fixed a bug related to `useNativeDriver` | ||
- no breaking changes | ||
### 1.3.0 | ||
@@ -140,3 +144,3 @@ - added changelog section to README.md | ||
`useNativeDriver: false` to use useNativeDriver for animations | ||
`useNativeDriver: false` to use useNativeDriver for animations if possible | ||
@@ -143,0 +147,0 @@ `useNativeLayout: false` to use onLayoutEvent.nativeEvent.layout instead of measureInWindow for x, y, width, height values for wheel and slider measurements which may be useful to prevent some layout problems |
@@ -48,3 +48,3 @@ import * as React from 'react'; | ||
sliderLoadingIndicator?: React.ReactNode, | ||
/** To use useNativeDriver for animations */ | ||
/** To use useNativeDriver for animations if possible */ | ||
useNativeDriver?: boolean, | ||
@@ -51,0 +51,0 @@ /** To use onLayoutEvent.nativeEvent.layout instead of measureInWindow for x, y, width, height values for wheel and slider measurements which may be useful to prevent some layout problems */ |
180
245330