mirror of
https://github.com/zhigang1992/examples.git
synced 2026-04-28 17:36:00 +08:00
Merge pull request #178 from mgm1313/master
Add `useNativeDriver` to with-video-background example
This commit is contained in:
@@ -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'
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user