MCPcopy Create free account
hub / github.com/callstack/react-native-paper / timing

Function timing

testSetup.js:33–54  ·  view source on GitHub ↗
(value, config)

Source from the content-addressed store, hash-verified

31 const RN = jest.requireActual('react-native');
32
33 const timing = (value, config) => {
34 const animation = {
35 start: (callback) => {
36 setTimeout(() => {
37 value.setValue(config.toValue);
38 if (callback) {
39 callback({ finished: true });
40 }
41 }, 0);
42 },
43 value,
44 config,
45 stop: () => {
46 throw new Error('Not implemented');
47 },
48 reset: () => {
49 throw new Error('Not implemented');
50 },
51 };
52
53 return animation;
54 };
55
56 const loop = (animation) => {
57 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…