We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec8713d commit 505efccCopy full SHA for 505efcc
src/components/slider/index.js
@@ -121,6 +121,8 @@ export default class Slider extends PureBaseComponent {
121
this.initialThumbSize = THUMB_SIZE;
122
123
this.checkProps(props);
124
+
125
+ this.createPanResponderConfig();
126
}
127
128
checkProps(props) {
@@ -132,7 +134,7 @@ export default class Slider extends PureBaseComponent {
132
134
133
135
136
- UNSAFE_componentWillMount() {
137
+ createPanResponderConfig() {
138
this._panResponder = PanResponder.create({
139
onMoveShouldSetPanResponder: this.handleMoveShouldSetPanResponder,
140
onPanResponderGrant: this.handlePanResponderGrant,
0 commit comments