mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Deploy Flow v0.85 to xplat/js
Reviewed By: fishythefish Differential Revision: D12898653 fbshipit-source-id: 2ed11ce569600fe4c12528939a350dd827c9a29a
This commit is contained in:
committed by
Facebook Github Bot
parent
04ea9762e2
commit
adc8a33fcf
@@ -42,6 +42,9 @@ class ProgressViewExample extends React.Component<Props, State> {
|
||||
this._rafId = requestAnimationFrame(() => this.updateProgress());
|
||||
};
|
||||
|
||||
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
|
||||
* found when Flow v0.85 was deployed. To see the error, delete this comment
|
||||
* and run Flow. */
|
||||
getProgress = offset => {
|
||||
const progress = this.state.progress + offset;
|
||||
return Math.sin(progress % Math.PI) % 1;
|
||||
|
||||
Reference in New Issue
Block a user