(value, config)
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…