react-native-web
Version:
React Native for Web
25 lines (23 loc) • 706 B
Flow
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict
*/
;
type SpringConfigType = {
stiffness: number,
damping: number,
...
};
declare function stiffnessFromOrigamiValue(oValue: any): any;
declare function dampingFromOrigamiValue(oValue: any): any;
declare function fromOrigamiTensionAndFriction(tension: number, friction: number): SpringConfigType;
declare function fromBouncinessAndSpeed(bounciness: number, speed: number): SpringConfigType;
export default {
fromOrigamiTensionAndFriction,
fromBouncinessAndSpeed
};