-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock.js
120 lines (108 loc) · 1.95 KB
/
mock.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/**
* Mock implementation for test runners.
*
* Example:
*
* ```js
* jest.mock('react-native-reanimated', () => require('react-native-reanimated/mock'));
* ```
*/
const React = require('react');
const { View, Text, Image, ScrollView } = require('react-native');
const NOOP = () => undefined;
class Code extends React.Component {
render() {
return null;
}
}
module.exports = {
__esModule: true,
default: {
SpringUtils: {
makeDefaultConfig: NOOP,
makeConfigFromBouncinessAndSpeed: NOOP,
makeConfigFromOrigamiTensionAndFriction: NOOP,
},
View,
Text,
Image,
ScrollView,
Code,
Clock: NOOP,
Node: NOOP,
Value: NOOP,
Extrapolate: {
EXTEND: 'extend',
CLAMP: 'clamp',
IDENTITY: 'identity',
},
add: NOOP,
sub: NOOP,
multiply: NOOP,
divide: NOOP,
pow: NOOP,
modulo: NOOP,
sqrt: NOOP,
log: NOOP,
sin: NOOP,
cos: NOOP,
tan: NOOP,
acos: NOOP,
asin: NOOP,
atan: NOOP,
exp: NOOP,
round: NOOP,
floor: NOOP,
ceil: NOOP,
lessThan: NOOP,
eq: NOOP,
greaterThan: NOOP,
lessOrEq: NOOP,
greaterOrEq: NOOP,
neq: NOOP,
and: NOOP,
or: NOOP,
defined: NOOP,
not: NOOP,
set: NOOP,
concat: NOOP,
cond: NOOP,
block: NOOP,
call: NOOP,
debug: NOOP,
onChange: NOOP,
startClock: NOOP,
stopClock: NOOP,
clockRunning: NOOP,
event: NOOP,
abs: NOOP,
acc: NOOP,
color: NOOP,
diff: NOOP,
diffClamp: NOOP,
interpolate: NOOP,
max: NOOP,
min: NOOP,
decay: NOOP,
timing: NOOP,
spring: NOOP,
useCode: NOOP,
},
Easing: {
linear: NOOP,
ease: NOOP,
quad: NOOP,
cubic: NOOP,
poly: () => NOOP,
sin: NOOP,
circle: NOOP,
exp: NOOP,
elastic: () => NOOP,
back: () => NOOP,
bounce: () => NOOP,
bezier: () => NOOP,
in: () => NOOP,
out: () => NOOP,
inOut: () => NOOP,
},
};