Skip to content

Commit d123bea

Browse files
elicwhitefacebook-github-bot
authored andcommitted
Change Animated's Flow Type to require useNativeDriver be explicit
Summary: We found that many callsites existed that could be using the native driver, but weren't. In order to help people use it when appropriate and eventually switch the default, we are requiring that useNativeDriver is explicit, even when set to false. For now, we are changing the flow type to turn this on at Facebook, but aren't making this a runtime warning until we have a bit more confidence in our plans so that we don't churn the community. Reviewed By: mdvacca Differential Revision: D16611301 fbshipit-source-id: dfa8536786fc949f0239118a9e0936b268b1081d
1 parent 9bc77fa commit d123bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Animated/src/animations/Animation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type EndCallback = (result: EndResult) => void | Promise<void>;
1818

1919
export type AnimationConfig = {
2020
isInteraction?: boolean,
21-
useNativeDriver?: boolean,
21+
useNativeDriver: boolean,
2222
onComplete?: ?EndCallback,
2323
iterations?: number,
2424
};

0 commit comments

Comments
 (0)