Skip to content

Commit f90c579

Browse files
ThaJayDJ
and
DJ
authored
fix: added useNativeDriver:false to Animated config to prevent warning (true is not supported in this case) (#36)
Co-authored-by: DJ <[email protected]>
1 parent 433c19c commit f90c579

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

+4
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export default class FAB extends Component {
109109
duration: durationValues.entry,
110110
toValue: 1,
111111
easing: sharpEasingValues.entry,
112+
useNativeDriver: false,
112113
},
113114
).start();
114115
} else if (!nextProps.visible && visible) {
@@ -118,6 +119,7 @@ export default class FAB extends Component {
118119
duration: durationValues.exit,
119120
toValue: 0,
120121
easing: sharpEasingValues.exit,
122+
useNativeDriver: false,
121123
},
122124
).start();
123125
}
@@ -129,6 +131,7 @@ export default class FAB extends Component {
129131
duration: durationValues.exit,
130132
toValue: 20,
131133
easing: moveEasingValues.exit,
134+
useNativeDriver: false,
132135
},
133136
).start();
134137
} else if (nextProps.snackOffset !== 0) {
@@ -138,6 +141,7 @@ export default class FAB extends Component {
138141
duration: durationValues.entry,
139142
toValue: 20 + nextProps.snackOffset,
140143
easing: moveEasingValues.entry,
144+
useNativeDriver: false,
141145
},
142146
).start();
143147
}

0 commit comments

Comments
 (0)