( decelerationRate: DecelerationRateConstant | number | undefined, )
| 17 | |
| 18 | const resolveAssetSource = (source: ImageSourcePropType) => Image.resolveAssetSource(source); |
| 19 | const processDecelerationRate = ( |
| 20 | decelerationRate: DecelerationRateConstant | number | undefined, |
| 21 | ) => { |
| 22 | let newDecelerationRate = decelerationRate; |
| 23 | if (newDecelerationRate === 'normal') { |
| 24 | newDecelerationRate = 0.998; |
| 25 | } else if (newDecelerationRate === 'fast') { |
| 26 | newDecelerationRate = 0.99; |
| 27 | } |
| 28 | return newDecelerationRate; |
| 29 | }; |
| 30 | |
| 31 | // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint |
| 32 | const useWarnIfChanges = <T extends unknown>(value: T, name: string) => { |
no outgoing calls
no test coverage detected
searching dependent graphs…