Merge pull request #178 from mgm1313/master

Add `useNativeDriver` to with-video-background example
This commit is contained in:
Evan Bacon
2020-06-08 13:36:31 -07:00
committed by GitHub

View File

@@ -21,7 +21,8 @@ export default function App() {
onLoad={() => {
// https://facebook.github.io/react-native/docs/animated#timing
Animated.timing(opacity, {
toValue: 1
toValue: 1,
useNativeDriver: true,
}).start();
}}
resizeMode="cover"
@@ -66,4 +67,4 @@ const styles = StyleSheet.create({
paddingHorizontal: 20,
textAlign: 'center'
}
});
});