MCPcopy
hub / github.com/react-native-modal/react-native-modal / makeSlideTranslation

Function makeSlideTranslation

src/utils.ts:25–36  ·  view source on GitHub ↗
(
  translationType: string,
  fromValue: number,
  toValue: number,
)

Source from the content-addressed store, hash-verified

23};
24
25export const makeSlideTranslation = (
26 translationType: string,
27 fromValue: number,
28 toValue: number,
29) => ({
30 from: {
31 [translationType]: fromValue,
32 },
33 to: {
34 [translationType]: toValue,
35 },
36});
37
38// User can define custom react-native-animatable animations, see PR #72
39// Utility for creating our own custom react-native-animatable animations

Callers 1

initializeAnimationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…