Skip to content

Commit 4b400d6

Browse files
authoredApr 17, 2020
fix: fix warning thrown on button animation (#1769)
1 parent ef98d6b commit 4b400d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/components/Button.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Button extends React.Component<Props, State> {
139139
Animated.timing(this.state.elevation, {
140140
toValue: 8,
141141
duration: 200 * scale,
142-
useNativeDriver: false,
142+
useNativeDriver: true,
143143
}).start();
144144
}
145145
};
@@ -150,7 +150,7 @@ class Button extends React.Component<Props, State> {
150150
Animated.timing(this.state.elevation, {
151151
toValue: 2,
152152
duration: 150 * scale,
153-
useNativeDriver: false,
153+
useNativeDriver: true,
154154
}).start();
155155
}
156156
};

0 commit comments

Comments
 (0)