stream-chat-react-native-core 9.10.1 → 9.10.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/contexts/swipeableContext/SwipeRegistryContext.js +10 -9
- package/lib/commonjs/contexts/swipeableContext/SwipeRegistryContext.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/contexts/swipeableContext/SwipeRegistryContext.js +10 -9
- package/lib/module/contexts/swipeableContext/SwipeRegistryContext.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/contexts/swipeableContext/SwipeRegistryContext.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.tsx.snap +45 -15
- package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.tsx.snap +30 -10
- package/src/components/MessageList/__tests__/__snapshots__/ScrollToBottomButton.test.tsx.snap +3 -1
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.tsx.snap +18 -6
- package/src/components/UIComponents/__tests__/SwipableWrapper.test.tsx +68 -2
- package/src/contexts/swipeableContext/SwipeRegistryContext.tsx +1 -0
- package/src/version.json +1 -1
|
@@ -29,36 +29,37 @@ var SwipeRegistryProvider = ({
|
|
|
29
29
|
var _swipeablesRef$curren;
|
|
30
30
|
var registered = (_swipeablesRef$curren = swipeablesRef.current) == null ? void 0 : _swipeablesRef$curren.get(id);
|
|
31
31
|
if (registered === close) {
|
|
32
|
-
var _swipeablesRef$curren2;
|
|
32
|
+
var _swipeablesRef$curren2, _openRef$current;
|
|
33
33
|
(_swipeablesRef$curren2 = swipeablesRef.current) == null || _swipeablesRef$curren2.delete(id);
|
|
34
|
+
(_openRef$current = openRef.current) == null || _openRef$current.delete(id);
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
}, []);
|
|
37
38
|
var updateOpenTracker = (0, _react.useCallback)((id, value) => {
|
|
38
|
-
var _openRef$
|
|
39
|
+
var _openRef$current3;
|
|
39
40
|
if (value) {
|
|
40
|
-
var _openRef$
|
|
41
|
-
(_openRef$
|
|
41
|
+
var _openRef$current2;
|
|
42
|
+
(_openRef$current2 = openRef.current) == null || _openRef$current2.add(id);
|
|
42
43
|
return;
|
|
43
44
|
}
|
|
44
|
-
(_openRef$
|
|
45
|
+
(_openRef$current3 = openRef.current) == null || _openRef$current3.delete(id);
|
|
45
46
|
}, []);
|
|
46
47
|
var notifyWillOpen = (0, _react.useCallback)(id => {
|
|
47
48
|
for (var _iterator = _createForOfIteratorHelperLoose((_swipeablesRef$curren3 = (_swipeablesRef$curren4 = swipeablesRef.current) == null ? void 0 : _swipeablesRef$curren4.entries()) != null ? _swipeablesRef$curren3 : []), _step; !(_step = _iterator()).done;) {
|
|
48
|
-
var _swipeablesRef$curren3, _swipeablesRef$curren4, _openRef$
|
|
49
|
+
var _swipeablesRef$curren3, _swipeablesRef$curren4, _openRef$current4;
|
|
49
50
|
var _ref = _step.value;
|
|
50
51
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2);
|
|
51
52
|
var registeredId = _ref2[0];
|
|
52
53
|
var close = _ref2[1];
|
|
53
|
-
if (registeredId !== id && (_openRef$
|
|
54
|
+
if (registeredId !== id && (_openRef$current4 = openRef.current) != null && _openRef$current4.has(registeredId)) {
|
|
54
55
|
close();
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
updateOpenTracker(id, true);
|
|
58
59
|
}, [updateOpenTracker]);
|
|
59
60
|
var hasOpen = (0, _react.useCallback)(() => {
|
|
60
|
-
var _openRef$
|
|
61
|
-
return !!((_openRef$
|
|
61
|
+
var _openRef$current5;
|
|
62
|
+
return !!((_openRef$current5 = openRef.current) != null && _openRef$current5.size);
|
|
62
63
|
}, []);
|
|
63
64
|
var closeAll = (0, _react.useCallback)(() => {
|
|
64
65
|
for (var _iterator2 = _createForOfIteratorHelperLoose((_swipeablesRef$curren5 = (_swipeablesRef$curren6 = swipeablesRef.current) == null ? void 0 : _swipeablesRef$curren6.values()) != null ? _swipeablesRef$curren5 : []), _step2; !(_step2 = _iterator2()).done;) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_createForOfIteratorHelperLoose","Symbol","iterator","next","bind","Array","isArray","_unsupportedIterableToArray","length","done","value","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","from","test","SwipeRegistryContext","createContext","undefined","SwipeRegistryProvider","children","swipeablesRef","useRef","openRef","registerSwipeable","useCallback","id","close","current","Map","Set","_swipeablesRef$curren","registered","_swipeablesRef$curren2","delete","updateOpenTracker","_openRef$
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_createForOfIteratorHelperLoose","Symbol","iterator","next","bind","Array","isArray","_unsupportedIterableToArray","length","done","value","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","from","test","SwipeRegistryContext","createContext","undefined","SwipeRegistryProvider","children","swipeablesRef","useRef","openRef","registerSwipeable","useCallback","id","close","current","Map","Set","_swipeablesRef$curren","registered","_swipeablesRef$curren2","_openRef$current","delete","updateOpenTracker","_openRef$current3","_openRef$current2","add","notifyWillOpen","_iterator","_swipeablesRef$curren3","_swipeablesRef$curren4","entries","_step","_openRef$current4","_ref","_ref2","_slicedToArray2","registeredId","hasOpen","_openRef$current5","size","closeAll","_iterator2","_swipeablesRef$curren5","_swipeablesRef$curren6","values","_step2","useMemo","jsx","Provider","exports","useSwipeRegistryContext","useContext"],"sourceRoot":"../../../../src","sources":["contexts/swipeableContext/SwipeRegistryContext.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAA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AA,GAAI,EAAE,GAAAG,MAAA,IAAAA,MAAA,GAAAJ,UAAA,IAAAlD,IAAA,GAAE;MAAA,IAAAmD,sBAAA,EAAAC,sBAAA;MAAA,IAAhD9B,KAAK,GAAAgC,MAAA,CAAArD,KAAA;MACdqB,KAAK,CAAC,CAAC;IACT;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,IAAMrB,KAAK,GAAG,IAAAsD,cAAO,EACnB,OAAO;IACLpB,cAAc;IACdhB,iBAAiB;IACjB8B,QAAQ;IACRlB,iBAAiB;IACjBe;EACF,CAAC,CAAC,EACF,CAACX,cAAc,EAAEhB,iBAAiB,EAAE8B,QAAQ,EAAElB,iBAAiB,EAAEe,OAAO,CAC1E,CAAC;EAED,OAAO,IAAA7E,WAAA,CAAAuF,GAAA,EAAC7C,oBAAoB,CAAC8C,QAAQ;IAACxD,KAAK,EAAEA,KAAM;IAAAc,QAAA,EAAEA;EAAQ,CAAgC,CAAC;AAChG,CAAC;AAAC2C,OAAA,CAAA5C,qBAAA,GAAAA,qBAAA;AAEK,IAAM6C,uBAAuB,GAAGA,CAAA,KAAM,IAAAC,iBAAU,EAACjD,oBAAoB,CAAC;AAAC+C,OAAA,CAAAC,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -29,36 +29,37 @@ var SwipeRegistryProvider = ({
|
|
|
29
29
|
var _swipeablesRef$curren;
|
|
30
30
|
var registered = (_swipeablesRef$curren = swipeablesRef.current) == null ? void 0 : _swipeablesRef$curren.get(id);
|
|
31
31
|
if (registered === close) {
|
|
32
|
-
var _swipeablesRef$curren2;
|
|
32
|
+
var _swipeablesRef$curren2, _openRef$current;
|
|
33
33
|
(_swipeablesRef$curren2 = swipeablesRef.current) == null || _swipeablesRef$curren2.delete(id);
|
|
34
|
+
(_openRef$current = openRef.current) == null || _openRef$current.delete(id);
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
}, []);
|
|
37
38
|
var updateOpenTracker = (0, _react.useCallback)((id, value) => {
|
|
38
|
-
var _openRef$
|
|
39
|
+
var _openRef$current3;
|
|
39
40
|
if (value) {
|
|
40
|
-
var _openRef$
|
|
41
|
-
(_openRef$
|
|
41
|
+
var _openRef$current2;
|
|
42
|
+
(_openRef$current2 = openRef.current) == null || _openRef$current2.add(id);
|
|
42
43
|
return;
|
|
43
44
|
}
|
|
44
|
-
(_openRef$
|
|
45
|
+
(_openRef$current3 = openRef.current) == null || _openRef$current3.delete(id);
|
|
45
46
|
}, []);
|
|
46
47
|
var notifyWillOpen = (0, _react.useCallback)(id => {
|
|
47
48
|
for (var _iterator = _createForOfIteratorHelperLoose((_swipeablesRef$curren3 = (_swipeablesRef$curren4 = swipeablesRef.current) == null ? void 0 : _swipeablesRef$curren4.entries()) != null ? _swipeablesRef$curren3 : []), _step; !(_step = _iterator()).done;) {
|
|
48
|
-
var _swipeablesRef$curren3, _swipeablesRef$curren4, _openRef$
|
|
49
|
+
var _swipeablesRef$curren3, _swipeablesRef$curren4, _openRef$current4;
|
|
49
50
|
var _ref = _step.value;
|
|
50
51
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2);
|
|
51
52
|
var registeredId = _ref2[0];
|
|
52
53
|
var close = _ref2[1];
|
|
53
|
-
if (registeredId !== id && (_openRef$
|
|
54
|
+
if (registeredId !== id && (_openRef$current4 = openRef.current) != null && _openRef$current4.has(registeredId)) {
|
|
54
55
|
close();
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
updateOpenTracker(id, true);
|
|
58
59
|
}, [updateOpenTracker]);
|
|
59
60
|
var hasOpen = (0, _react.useCallback)(() => {
|
|
60
|
-
var _openRef$
|
|
61
|
-
return !!((_openRef$
|
|
61
|
+
var _openRef$current5;
|
|
62
|
+
return !!((_openRef$current5 = openRef.current) != null && _openRef$current5.size);
|
|
62
63
|
}, []);
|
|
63
64
|
var closeAll = (0, _react.useCallback)(() => {
|
|
64
65
|
for (var _iterator2 = _createForOfIteratorHelperLoose((_swipeablesRef$curren5 = (_swipeablesRef$curren6 = swipeablesRef.current) == null ? void 0 : _swipeablesRef$curren6.values()) != null ? _swipeablesRef$curren5 : []), _step2; !(_step2 = _iterator2()).done;) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_createForOfIteratorHelperLoose","Symbol","iterator","next","bind","Array","isArray","_unsupportedIterableToArray","length","done","value","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","from","test","SwipeRegistryContext","createContext","undefined","SwipeRegistryProvider","children","swipeablesRef","useRef","openRef","registerSwipeable","useCallback","id","close","current","Map","Set","_swipeablesRef$curren","registered","_swipeablesRef$curren2","delete","updateOpenTracker","_openRef$
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_createForOfIteratorHelperLoose","Symbol","iterator","next","bind","Array","isArray","_unsupportedIterableToArray","length","done","value","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","from","test","SwipeRegistryContext","createContext","undefined","SwipeRegistryProvider","children","swipeablesRef","useRef","openRef","registerSwipeable","useCallback","id","close","current","Map","Set","_swipeablesRef$curren","registered","_swipeablesRef$curren2","_openRef$current","delete","updateOpenTracker","_openRef$current3","_openRef$current2","add","notifyWillOpen","_iterator","_swipeablesRef$curren3","_swipeablesRef$curren4","entries","_step","_openRef$current4","_ref","_ref2","_slicedToArray2","registeredId","hasOpen","_openRef$current5","size","closeAll","_iterator2","_swipeablesRef$curren5","_swipeablesRef$curren6","values","_step2","useMemo","jsx","Provider","exports","useSwipeRegistryContext","useContext"],"sourceRoot":"../../../../src","sources":["contexts/swipeableContext/SwipeRegistryContext.tsx"],"mappings":";;;;;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,CAAuBC,MAAM,CAAC,CAAC,YAAAF,sBAAA,GAAI,EAAE,GAAAG,MAAA,IAAAA,MAAA,GAAAJ,UAAA,IAAAlD,IAAA,GAAE;MAAA,IAAAmD,sBAAA,EAAAC,sBAAA;MAAA,IAAhD9B,KAAK,GAAAgC,MAAA,CAAArD,KAAA;MACdqB,KAAK,CAAC,CAAC;IACT;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,IAAMrB,KAAK,GAAG,IAAAsD,cAAO,EACnB,OAAO;IACLpB,cAAc;IACdhB,iBAAiB;IACjB8B,QAAQ;IACRlB,iBAAiB;IACjBe;EACF,CAAC,CAAC,EACF,CAACX,cAAc,EAAEhB,iBAAiB,EAAE8B,QAAQ,EAAElB,iBAAiB,EAAEe,OAAO,CAC1E,CAAC;EAED,OAAO,IAAA7E,WAAA,CAAAuF,GAAA,EAAC7C,oBAAoB,CAAC8C,QAAQ;IAACxD,KAAK,EAAEA,KAAM;IAAAc,QAAA,EAAEA;EAAQ,CAAgC,CAAC;AAChG,CAAC;AAAC2C,OAAA,CAAA5C,qBAAA,GAAAA,qBAAA;AAEK,IAAM6C,uBAAuB,GAAGA,CAAA,KAAM,IAAAC,iBAAU,EAACjD,oBAAoB,CAAC;AAAC+C,OAAA,CAAAC,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
package/lib/module/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeRegistryContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/swipeableContext/SwipeRegistryContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAEf,KAAK,cAAc,GAAG,MAAM,IAAI,CAAC;AAEjC,KAAK,yBAAyB,GAAG;IAC/B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,KAAK,MAAM,IAAI,CAAC;IACrE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,OAAO,EAAE,MAAM,OAAO,CAAC;CACxB,CAAC;AAIF,eAAO,MAAM,qBAAqB,GAAI,cAAc,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SwipeRegistryContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/swipeableContext/SwipeRegistryContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAEf,KAAK,cAAc,GAAG,MAAM,IAAI,CAAC;AAEjC,KAAK,yBAAyB,GAAG;IAC/B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,KAAK,MAAM,IAAI,CAAC;IACrE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,OAAO,EAAE,MAAM,OAAO,CAAC;CACxB,CAAC;AAIF,eAAO,MAAM,qBAAqB,GAAI,cAAc,iBAAiB,sBAmEpE,CAAC;AAEF,eAAO,MAAM,uBAAuB,6CAAyC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "9.10.1",
|
|
4
|
+
"version": "9.10.2-beta.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"react": "19.3.0",
|
|
159
159
|
"react-native": "0.88.0",
|
|
160
160
|
"react-native-builder-bob": "0.40.11",
|
|
161
|
-
"react-native-gesture-handler": "^3.
|
|
161
|
+
"react-native-gesture-handler": "^3.4.0",
|
|
162
162
|
"react-native-reanimated": "^4.7.1",
|
|
163
163
|
"react-native-safe-area-context": "^5.10.1",
|
|
164
164
|
"react-native-svg": "15.15.5",
|
|
@@ -70,8 +70,10 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
|
|
|
70
70
|
}
|
|
71
71
|
hoverAnimationInDuration={50}
|
|
72
72
|
hoverAnimationOutDuration={100}
|
|
73
|
+
immediatePressOut={false}
|
|
73
74
|
longPressAnimationOutDuration={100}
|
|
74
75
|
longPressDuration={500}
|
|
76
|
+
moduleId={-1}
|
|
75
77
|
onButtonInteractionFinished={[Function]}
|
|
76
78
|
onButtonLongPress={[Function]}
|
|
77
79
|
onButtonPress={[Function]}
|
|
@@ -99,7 +101,7 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
|
|
|
99
101
|
],
|
|
100
102
|
]
|
|
101
103
|
}
|
|
102
|
-
tapAnimationInDuration={
|
|
104
|
+
tapAnimationInDuration={130}
|
|
103
105
|
tapAnimationOutDuration={100}
|
|
104
106
|
testID="attach-button"
|
|
105
107
|
testOnly_onPress={[Function]}
|
|
@@ -252,8 +254,10 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
|
|
|
252
254
|
}
|
|
253
255
|
hoverAnimationInDuration={50}
|
|
254
256
|
hoverAnimationOutDuration={100}
|
|
257
|
+
immediatePressOut={false}
|
|
255
258
|
longPressAnimationOutDuration={100}
|
|
256
259
|
longPressDuration={500}
|
|
260
|
+
moduleId={-1}
|
|
257
261
|
onButtonInteractionFinished={[Function]}
|
|
258
262
|
onButtonLongPress={[Function]}
|
|
259
263
|
onButtonPress={[Function]}
|
|
@@ -281,7 +285,7 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
|
|
|
281
285
|
],
|
|
282
286
|
]
|
|
283
287
|
}
|
|
284
|
-
tapAnimationInDuration={
|
|
288
|
+
tapAnimationInDuration={130}
|
|
285
289
|
tapAnimationOutDuration={100}
|
|
286
290
|
testID="upload-photo-touchable"
|
|
287
291
|
testOnly_onPress={[Function]}
|
|
@@ -407,8 +411,10 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
|
|
|
407
411
|
}
|
|
408
412
|
hoverAnimationInDuration={50}
|
|
409
413
|
hoverAnimationOutDuration={100}
|
|
414
|
+
immediatePressOut={false}
|
|
410
415
|
longPressAnimationOutDuration={100}
|
|
411
416
|
longPressDuration={500}
|
|
417
|
+
moduleId={-1}
|
|
412
418
|
onButtonInteractionFinished={[Function]}
|
|
413
419
|
onButtonLongPress={[Function]}
|
|
414
420
|
onButtonPress={[Function]}
|
|
@@ -436,7 +442,7 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
|
|
|
436
442
|
],
|
|
437
443
|
]
|
|
438
444
|
}
|
|
439
|
-
tapAnimationInDuration={
|
|
445
|
+
tapAnimationInDuration={130}
|
|
440
446
|
tapAnimationOutDuration={100}
|
|
441
447
|
testID="take-photo-touchable"
|
|
442
448
|
testOnly_onPress={[Function]}
|
|
@@ -591,8 +597,10 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
|
|
|
591
597
|
}
|
|
592
598
|
hoverAnimationInDuration={50}
|
|
593
599
|
hoverAnimationOutDuration={100}
|
|
600
|
+
immediatePressOut={false}
|
|
594
601
|
longPressAnimationOutDuration={100}
|
|
595
602
|
longPressDuration={500}
|
|
603
|
+
moduleId={-1}
|
|
596
604
|
onButtonInteractionFinished={[Function]}
|
|
597
605
|
onButtonLongPress={[Function]}
|
|
598
606
|
onButtonPress={[Function]}
|
|
@@ -620,7 +628,7 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
|
|
|
620
628
|
],
|
|
621
629
|
]
|
|
622
630
|
}
|
|
623
|
-
tapAnimationInDuration={
|
|
631
|
+
tapAnimationInDuration={130}
|
|
624
632
|
tapAnimationOutDuration={100}
|
|
625
633
|
testID="upload-file-touchable"
|
|
626
634
|
testOnly_onPress={[Function]}
|
|
@@ -742,8 +750,10 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
|
|
|
742
750
|
}
|
|
743
751
|
hoverAnimationInDuration={50}
|
|
744
752
|
hoverAnimationOutDuration={100}
|
|
753
|
+
immediatePressOut={false}
|
|
745
754
|
longPressAnimationOutDuration={100}
|
|
746
755
|
longPressDuration={500}
|
|
756
|
+
moduleId={-1}
|
|
747
757
|
onButtonInteractionFinished={[Function]}
|
|
748
758
|
onButtonLongPress={[Function]}
|
|
749
759
|
onButtonPress={[Function]}
|
|
@@ -771,7 +781,7 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
|
|
|
771
781
|
],
|
|
772
782
|
]
|
|
773
783
|
}
|
|
774
|
-
tapAnimationInDuration={
|
|
784
|
+
tapAnimationInDuration={130}
|
|
775
785
|
tapAnimationOutDuration={100}
|
|
776
786
|
testID="commands-touchable"
|
|
777
787
|
testOnly_onPress={[Function]}
|
|
@@ -1026,8 +1036,10 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
|
|
|
1026
1036
|
}
|
|
1027
1037
|
hoverAnimationInDuration={50}
|
|
1028
1038
|
hoverAnimationOutDuration={100}
|
|
1039
|
+
immediatePressOut={false}
|
|
1029
1040
|
longPressAnimationOutDuration={100}
|
|
1030
1041
|
longPressDuration={500}
|
|
1042
|
+
moduleId={-1}
|
|
1031
1043
|
onButtonInteractionFinished={[Function]}
|
|
1032
1044
|
onButtonLongPress={[Function]}
|
|
1033
1045
|
onButtonPress={[Function]}
|
|
@@ -1055,7 +1067,7 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
|
|
|
1055
1067
|
],
|
|
1056
1068
|
]
|
|
1057
1069
|
}
|
|
1058
|
-
tapAnimationInDuration={
|
|
1070
|
+
tapAnimationInDuration={130}
|
|
1059
1071
|
tapAnimationOutDuration={100}
|
|
1060
1072
|
testID="attach-button"
|
|
1061
1073
|
testOnly_onPress={[Function]}
|
|
@@ -1208,8 +1220,10 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
|
|
|
1208
1220
|
}
|
|
1209
1221
|
hoverAnimationInDuration={50}
|
|
1210
1222
|
hoverAnimationOutDuration={100}
|
|
1223
|
+
immediatePressOut={false}
|
|
1211
1224
|
longPressAnimationOutDuration={100}
|
|
1212
1225
|
longPressDuration={500}
|
|
1226
|
+
moduleId={-1}
|
|
1213
1227
|
onButtonInteractionFinished={[Function]}
|
|
1214
1228
|
onButtonLongPress={[Function]}
|
|
1215
1229
|
onButtonPress={[Function]}
|
|
@@ -1237,7 +1251,7 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
|
|
|
1237
1251
|
],
|
|
1238
1252
|
]
|
|
1239
1253
|
}
|
|
1240
|
-
tapAnimationInDuration={
|
|
1254
|
+
tapAnimationInDuration={130}
|
|
1241
1255
|
tapAnimationOutDuration={100}
|
|
1242
1256
|
testID="upload-photo-touchable"
|
|
1243
1257
|
testOnly_onPress={[Function]}
|
|
@@ -1363,8 +1377,10 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
|
|
|
1363
1377
|
}
|
|
1364
1378
|
hoverAnimationInDuration={50}
|
|
1365
1379
|
hoverAnimationOutDuration={100}
|
|
1380
|
+
immediatePressOut={false}
|
|
1366
1381
|
longPressAnimationOutDuration={100}
|
|
1367
1382
|
longPressDuration={500}
|
|
1383
|
+
moduleId={-1}
|
|
1368
1384
|
onButtonInteractionFinished={[Function]}
|
|
1369
1385
|
onButtonLongPress={[Function]}
|
|
1370
1386
|
onButtonPress={[Function]}
|
|
@@ -1392,7 +1408,7 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
|
|
|
1392
1408
|
],
|
|
1393
1409
|
]
|
|
1394
1410
|
}
|
|
1395
|
-
tapAnimationInDuration={
|
|
1411
|
+
tapAnimationInDuration={130}
|
|
1396
1412
|
tapAnimationOutDuration={100}
|
|
1397
1413
|
testID="take-photo-touchable"
|
|
1398
1414
|
testOnly_onPress={[Function]}
|
|
@@ -1547,8 +1563,10 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
|
|
|
1547
1563
|
}
|
|
1548
1564
|
hoverAnimationInDuration={50}
|
|
1549
1565
|
hoverAnimationOutDuration={100}
|
|
1566
|
+
immediatePressOut={false}
|
|
1550
1567
|
longPressAnimationOutDuration={100}
|
|
1551
1568
|
longPressDuration={500}
|
|
1569
|
+
moduleId={-1}
|
|
1552
1570
|
onButtonInteractionFinished={[Function]}
|
|
1553
1571
|
onButtonLongPress={[Function]}
|
|
1554
1572
|
onButtonPress={[Function]}
|
|
@@ -1576,7 +1594,7 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
|
|
|
1576
1594
|
],
|
|
1577
1595
|
]
|
|
1578
1596
|
}
|
|
1579
|
-
tapAnimationInDuration={
|
|
1597
|
+
tapAnimationInDuration={130}
|
|
1580
1598
|
tapAnimationOutDuration={100}
|
|
1581
1599
|
testID="upload-file-touchable"
|
|
1582
1600
|
testOnly_onPress={[Function]}
|
|
@@ -1698,8 +1716,10 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
|
|
|
1698
1716
|
}
|
|
1699
1717
|
hoverAnimationInDuration={50}
|
|
1700
1718
|
hoverAnimationOutDuration={100}
|
|
1719
|
+
immediatePressOut={false}
|
|
1701
1720
|
longPressAnimationOutDuration={100}
|
|
1702
1721
|
longPressDuration={500}
|
|
1722
|
+
moduleId={-1}
|
|
1703
1723
|
onButtonInteractionFinished={[Function]}
|
|
1704
1724
|
onButtonLongPress={[Function]}
|
|
1705
1725
|
onButtonPress={[Function]}
|
|
@@ -1727,7 +1747,7 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
|
|
|
1727
1747
|
],
|
|
1728
1748
|
]
|
|
1729
1749
|
}
|
|
1730
|
-
tapAnimationInDuration={
|
|
1750
|
+
tapAnimationInDuration={130}
|
|
1731
1751
|
tapAnimationOutDuration={100}
|
|
1732
1752
|
testID="commands-touchable"
|
|
1733
1753
|
testOnly_onPress={[Function]}
|
|
@@ -1982,8 +2002,10 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
|
|
|
1982
2002
|
}
|
|
1983
2003
|
hoverAnimationInDuration={50}
|
|
1984
2004
|
hoverAnimationOutDuration={100}
|
|
2005
|
+
immediatePressOut={false}
|
|
1985
2006
|
longPressAnimationOutDuration={100}
|
|
1986
2007
|
longPressDuration={500}
|
|
2008
|
+
moduleId={-1}
|
|
1987
2009
|
onButtonInteractionFinished={[Function]}
|
|
1988
2010
|
onButtonLongPress={[Function]}
|
|
1989
2011
|
onButtonPress={[Function]}
|
|
@@ -2011,7 +2033,7 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
|
|
|
2011
2033
|
],
|
|
2012
2034
|
]
|
|
2013
2035
|
}
|
|
2014
|
-
tapAnimationInDuration={
|
|
2036
|
+
tapAnimationInDuration={130}
|
|
2015
2037
|
tapAnimationOutDuration={100}
|
|
2016
2038
|
testID="attach-button"
|
|
2017
2039
|
testOnly_onPress={[Function]}
|
|
@@ -2164,8 +2186,10 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
|
|
|
2164
2186
|
}
|
|
2165
2187
|
hoverAnimationInDuration={50}
|
|
2166
2188
|
hoverAnimationOutDuration={100}
|
|
2189
|
+
immediatePressOut={false}
|
|
2167
2190
|
longPressAnimationOutDuration={100}
|
|
2168
2191
|
longPressDuration={500}
|
|
2192
|
+
moduleId={-1}
|
|
2169
2193
|
onButtonInteractionFinished={[Function]}
|
|
2170
2194
|
onButtonLongPress={[Function]}
|
|
2171
2195
|
onButtonPress={[Function]}
|
|
@@ -2193,7 +2217,7 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
|
|
|
2193
2217
|
],
|
|
2194
2218
|
]
|
|
2195
2219
|
}
|
|
2196
|
-
tapAnimationInDuration={
|
|
2220
|
+
tapAnimationInDuration={130}
|
|
2197
2221
|
tapAnimationOutDuration={100}
|
|
2198
2222
|
testID="upload-photo-touchable"
|
|
2199
2223
|
testOnly_onPress={[Function]}
|
|
@@ -2319,8 +2343,10 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
|
|
|
2319
2343
|
}
|
|
2320
2344
|
hoverAnimationInDuration={50}
|
|
2321
2345
|
hoverAnimationOutDuration={100}
|
|
2346
|
+
immediatePressOut={false}
|
|
2322
2347
|
longPressAnimationOutDuration={100}
|
|
2323
2348
|
longPressDuration={500}
|
|
2349
|
+
moduleId={-1}
|
|
2324
2350
|
onButtonInteractionFinished={[Function]}
|
|
2325
2351
|
onButtonLongPress={[Function]}
|
|
2326
2352
|
onButtonPress={[Function]}
|
|
@@ -2348,7 +2374,7 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
|
|
|
2348
2374
|
],
|
|
2349
2375
|
]
|
|
2350
2376
|
}
|
|
2351
|
-
tapAnimationInDuration={
|
|
2377
|
+
tapAnimationInDuration={130}
|
|
2352
2378
|
tapAnimationOutDuration={100}
|
|
2353
2379
|
testID="take-photo-touchable"
|
|
2354
2380
|
testOnly_onPress={[Function]}
|
|
@@ -2503,8 +2529,10 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
|
|
|
2503
2529
|
}
|
|
2504
2530
|
hoverAnimationInDuration={50}
|
|
2505
2531
|
hoverAnimationOutDuration={100}
|
|
2532
|
+
immediatePressOut={false}
|
|
2506
2533
|
longPressAnimationOutDuration={100}
|
|
2507
2534
|
longPressDuration={500}
|
|
2535
|
+
moduleId={-1}
|
|
2508
2536
|
onButtonInteractionFinished={[Function]}
|
|
2509
2537
|
onButtonLongPress={[Function]}
|
|
2510
2538
|
onButtonPress={[Function]}
|
|
@@ -2532,7 +2560,7 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
|
|
|
2532
2560
|
],
|
|
2533
2561
|
]
|
|
2534
2562
|
}
|
|
2535
|
-
tapAnimationInDuration={
|
|
2563
|
+
tapAnimationInDuration={130}
|
|
2536
2564
|
tapAnimationOutDuration={100}
|
|
2537
2565
|
testID="upload-file-touchable"
|
|
2538
2566
|
testOnly_onPress={[Function]}
|
|
@@ -2654,8 +2682,10 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
|
|
|
2654
2682
|
}
|
|
2655
2683
|
hoverAnimationInDuration={50}
|
|
2656
2684
|
hoverAnimationOutDuration={100}
|
|
2685
|
+
immediatePressOut={false}
|
|
2657
2686
|
longPressAnimationOutDuration={100}
|
|
2658
2687
|
longPressDuration={500}
|
|
2688
|
+
moduleId={-1}
|
|
2659
2689
|
onButtonInteractionFinished={[Function]}
|
|
2660
2690
|
onButtonLongPress={[Function]}
|
|
2661
2691
|
onButtonPress={[Function]}
|
|
@@ -2683,7 +2713,7 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
|
|
|
2683
2713
|
],
|
|
2684
2714
|
]
|
|
2685
2715
|
}
|
|
2686
|
-
tapAnimationInDuration={
|
|
2716
|
+
tapAnimationInDuration={130}
|
|
2687
2717
|
tapAnimationOutDuration={100}
|
|
2688
2718
|
testID="commands-touchable"
|
|
2689
2719
|
testOnly_onPress={[Function]}
|
|
@@ -70,8 +70,10 @@ exports[`SendButton should render a SendButton 1`] = `
|
|
|
70
70
|
}
|
|
71
71
|
hoverAnimationInDuration={50}
|
|
72
72
|
hoverAnimationOutDuration={100}
|
|
73
|
+
immediatePressOut={false}
|
|
73
74
|
longPressAnimationOutDuration={100}
|
|
74
75
|
longPressDuration={500}
|
|
76
|
+
moduleId={-1}
|
|
75
77
|
onButtonInteractionFinished={[Function]}
|
|
76
78
|
onButtonLongPress={[Function]}
|
|
77
79
|
onButtonPress={[Function]}
|
|
@@ -99,7 +101,7 @@ exports[`SendButton should render a SendButton 1`] = `
|
|
|
99
101
|
],
|
|
100
102
|
]
|
|
101
103
|
}
|
|
102
|
-
tapAnimationInDuration={
|
|
104
|
+
tapAnimationInDuration={130}
|
|
103
105
|
tapAnimationOutDuration={100}
|
|
104
106
|
testID="send-button"
|
|
105
107
|
testOnly_onPress={[Function]}
|
|
@@ -250,8 +252,10 @@ exports[`SendButton should render a SendButton 1`] = `
|
|
|
250
252
|
}
|
|
251
253
|
hoverAnimationInDuration={50}
|
|
252
254
|
hoverAnimationOutDuration={100}
|
|
255
|
+
immediatePressOut={false}
|
|
253
256
|
longPressAnimationOutDuration={100}
|
|
254
257
|
longPressDuration={500}
|
|
258
|
+
moduleId={-1}
|
|
255
259
|
onButtonInteractionFinished={[Function]}
|
|
256
260
|
onButtonLongPress={[Function]}
|
|
257
261
|
onButtonPress={[Function]}
|
|
@@ -279,7 +283,7 @@ exports[`SendButton should render a SendButton 1`] = `
|
|
|
279
283
|
],
|
|
280
284
|
]
|
|
281
285
|
}
|
|
282
|
-
tapAnimationInDuration={
|
|
286
|
+
tapAnimationInDuration={130}
|
|
283
287
|
tapAnimationOutDuration={100}
|
|
284
288
|
testID="upload-photo-touchable"
|
|
285
289
|
testOnly_onPress={[Function]}
|
|
@@ -405,8 +409,10 @@ exports[`SendButton should render a SendButton 1`] = `
|
|
|
405
409
|
}
|
|
406
410
|
hoverAnimationInDuration={50}
|
|
407
411
|
hoverAnimationOutDuration={100}
|
|
412
|
+
immediatePressOut={false}
|
|
408
413
|
longPressAnimationOutDuration={100}
|
|
409
414
|
longPressDuration={500}
|
|
415
|
+
moduleId={-1}
|
|
410
416
|
onButtonInteractionFinished={[Function]}
|
|
411
417
|
onButtonLongPress={[Function]}
|
|
412
418
|
onButtonPress={[Function]}
|
|
@@ -434,7 +440,7 @@ exports[`SendButton should render a SendButton 1`] = `
|
|
|
434
440
|
],
|
|
435
441
|
]
|
|
436
442
|
}
|
|
437
|
-
tapAnimationInDuration={
|
|
443
|
+
tapAnimationInDuration={130}
|
|
438
444
|
tapAnimationOutDuration={100}
|
|
439
445
|
testID="take-photo-touchable"
|
|
440
446
|
testOnly_onPress={[Function]}
|
|
@@ -589,8 +595,10 @@ exports[`SendButton should render a SendButton 1`] = `
|
|
|
589
595
|
}
|
|
590
596
|
hoverAnimationInDuration={50}
|
|
591
597
|
hoverAnimationOutDuration={100}
|
|
598
|
+
immediatePressOut={false}
|
|
592
599
|
longPressAnimationOutDuration={100}
|
|
593
600
|
longPressDuration={500}
|
|
601
|
+
moduleId={-1}
|
|
594
602
|
onButtonInteractionFinished={[Function]}
|
|
595
603
|
onButtonLongPress={[Function]}
|
|
596
604
|
onButtonPress={[Function]}
|
|
@@ -618,7 +626,7 @@ exports[`SendButton should render a SendButton 1`] = `
|
|
|
618
626
|
],
|
|
619
627
|
]
|
|
620
628
|
}
|
|
621
|
-
tapAnimationInDuration={
|
|
629
|
+
tapAnimationInDuration={130}
|
|
622
630
|
tapAnimationOutDuration={100}
|
|
623
631
|
testID="upload-file-touchable"
|
|
624
632
|
testOnly_onPress={[Function]}
|
|
@@ -740,8 +748,10 @@ exports[`SendButton should render a SendButton 1`] = `
|
|
|
740
748
|
}
|
|
741
749
|
hoverAnimationInDuration={50}
|
|
742
750
|
hoverAnimationOutDuration={100}
|
|
751
|
+
immediatePressOut={false}
|
|
743
752
|
longPressAnimationOutDuration={100}
|
|
744
753
|
longPressDuration={500}
|
|
754
|
+
moduleId={-1}
|
|
745
755
|
onButtonInteractionFinished={[Function]}
|
|
746
756
|
onButtonLongPress={[Function]}
|
|
747
757
|
onButtonPress={[Function]}
|
|
@@ -769,7 +779,7 @@ exports[`SendButton should render a SendButton 1`] = `
|
|
|
769
779
|
],
|
|
770
780
|
]
|
|
771
781
|
}
|
|
772
|
-
tapAnimationInDuration={
|
|
782
|
+
tapAnimationInDuration={130}
|
|
773
783
|
tapAnimationOutDuration={100}
|
|
774
784
|
testID="commands-touchable"
|
|
775
785
|
testOnly_onPress={[Function]}
|
|
@@ -1024,8 +1034,10 @@ exports[`SendButton should render a disabled SendButton 1`] = `
|
|
|
1024
1034
|
}
|
|
1025
1035
|
hoverAnimationInDuration={50}
|
|
1026
1036
|
hoverAnimationOutDuration={100}
|
|
1037
|
+
immediatePressOut={false}
|
|
1027
1038
|
longPressAnimationOutDuration={100}
|
|
1028
1039
|
longPressDuration={500}
|
|
1040
|
+
moduleId={-1}
|
|
1029
1041
|
onButtonInteractionFinished={[Function]}
|
|
1030
1042
|
onButtonLongPress={[Function]}
|
|
1031
1043
|
onButtonPress={[Function]}
|
|
@@ -1053,7 +1065,7 @@ exports[`SendButton should render a disabled SendButton 1`] = `
|
|
|
1053
1065
|
],
|
|
1054
1066
|
]
|
|
1055
1067
|
}
|
|
1056
|
-
tapAnimationInDuration={
|
|
1068
|
+
tapAnimationInDuration={130}
|
|
1057
1069
|
tapAnimationOutDuration={100}
|
|
1058
1070
|
testID="send-button"
|
|
1059
1071
|
testOnly_onPress={[Function]}
|
|
@@ -1204,8 +1216,10 @@ exports[`SendButton should render a disabled SendButton 1`] = `
|
|
|
1204
1216
|
}
|
|
1205
1217
|
hoverAnimationInDuration={50}
|
|
1206
1218
|
hoverAnimationOutDuration={100}
|
|
1219
|
+
immediatePressOut={false}
|
|
1207
1220
|
longPressAnimationOutDuration={100}
|
|
1208
1221
|
longPressDuration={500}
|
|
1222
|
+
moduleId={-1}
|
|
1209
1223
|
onButtonInteractionFinished={[Function]}
|
|
1210
1224
|
onButtonLongPress={[Function]}
|
|
1211
1225
|
onButtonPress={[Function]}
|
|
@@ -1233,7 +1247,7 @@ exports[`SendButton should render a disabled SendButton 1`] = `
|
|
|
1233
1247
|
],
|
|
1234
1248
|
]
|
|
1235
1249
|
}
|
|
1236
|
-
tapAnimationInDuration={
|
|
1250
|
+
tapAnimationInDuration={130}
|
|
1237
1251
|
tapAnimationOutDuration={100}
|
|
1238
1252
|
testID="upload-photo-touchable"
|
|
1239
1253
|
testOnly_onPress={[Function]}
|
|
@@ -1359,8 +1373,10 @@ exports[`SendButton should render a disabled SendButton 1`] = `
|
|
|
1359
1373
|
}
|
|
1360
1374
|
hoverAnimationInDuration={50}
|
|
1361
1375
|
hoverAnimationOutDuration={100}
|
|
1376
|
+
immediatePressOut={false}
|
|
1362
1377
|
longPressAnimationOutDuration={100}
|
|
1363
1378
|
longPressDuration={500}
|
|
1379
|
+
moduleId={-1}
|
|
1364
1380
|
onButtonInteractionFinished={[Function]}
|
|
1365
1381
|
onButtonLongPress={[Function]}
|
|
1366
1382
|
onButtonPress={[Function]}
|
|
@@ -1388,7 +1404,7 @@ exports[`SendButton should render a disabled SendButton 1`] = `
|
|
|
1388
1404
|
],
|
|
1389
1405
|
]
|
|
1390
1406
|
}
|
|
1391
|
-
tapAnimationInDuration={
|
|
1407
|
+
tapAnimationInDuration={130}
|
|
1392
1408
|
tapAnimationOutDuration={100}
|
|
1393
1409
|
testID="take-photo-touchable"
|
|
1394
1410
|
testOnly_onPress={[Function]}
|
|
@@ -1543,8 +1559,10 @@ exports[`SendButton should render a disabled SendButton 1`] = `
|
|
|
1543
1559
|
}
|
|
1544
1560
|
hoverAnimationInDuration={50}
|
|
1545
1561
|
hoverAnimationOutDuration={100}
|
|
1562
|
+
immediatePressOut={false}
|
|
1546
1563
|
longPressAnimationOutDuration={100}
|
|
1547
1564
|
longPressDuration={500}
|
|
1565
|
+
moduleId={-1}
|
|
1548
1566
|
onButtonInteractionFinished={[Function]}
|
|
1549
1567
|
onButtonLongPress={[Function]}
|
|
1550
1568
|
onButtonPress={[Function]}
|
|
@@ -1572,7 +1590,7 @@ exports[`SendButton should render a disabled SendButton 1`] = `
|
|
|
1572
1590
|
],
|
|
1573
1591
|
]
|
|
1574
1592
|
}
|
|
1575
|
-
tapAnimationInDuration={
|
|
1593
|
+
tapAnimationInDuration={130}
|
|
1576
1594
|
tapAnimationOutDuration={100}
|
|
1577
1595
|
testID="upload-file-touchable"
|
|
1578
1596
|
testOnly_onPress={[Function]}
|
|
@@ -1694,8 +1712,10 @@ exports[`SendButton should render a disabled SendButton 1`] = `
|
|
|
1694
1712
|
}
|
|
1695
1713
|
hoverAnimationInDuration={50}
|
|
1696
1714
|
hoverAnimationOutDuration={100}
|
|
1715
|
+
immediatePressOut={false}
|
|
1697
1716
|
longPressAnimationOutDuration={100}
|
|
1698
1717
|
longPressDuration={500}
|
|
1718
|
+
moduleId={-1}
|
|
1699
1719
|
onButtonInteractionFinished={[Function]}
|
|
1700
1720
|
onButtonLongPress={[Function]}
|
|
1701
1721
|
onButtonPress={[Function]}
|
|
@@ -1723,7 +1743,7 @@ exports[`SendButton should render a disabled SendButton 1`] = `
|
|
|
1723
1743
|
],
|
|
1724
1744
|
]
|
|
1725
1745
|
}
|
|
1726
|
-
tapAnimationInDuration={
|
|
1746
|
+
tapAnimationInDuration={130}
|
|
1727
1747
|
tapAnimationOutDuration={100}
|
|
1728
1748
|
testID="commands-touchable"
|
|
1729
1749
|
testOnly_onPress={[Function]}
|
package/src/components/MessageList/__tests__/__snapshots__/ScrollToBottomButton.test.tsx.snap
CHANGED
|
@@ -84,8 +84,10 @@ exports[`ScrollToBottomButton should render the message notification and match s
|
|
|
84
84
|
}
|
|
85
85
|
hoverAnimationInDuration={50}
|
|
86
86
|
hoverAnimationOutDuration={100}
|
|
87
|
+
immediatePressOut={false}
|
|
87
88
|
longPressAnimationOutDuration={100}
|
|
88
89
|
longPressDuration={500}
|
|
90
|
+
moduleId={-1}
|
|
89
91
|
onButtonInteractionFinished={[Function]}
|
|
90
92
|
onButtonLongPress={[Function]}
|
|
91
93
|
onButtonPress={[Function]}
|
|
@@ -113,7 +115,7 @@ exports[`ScrollToBottomButton should render the message notification and match s
|
|
|
113
115
|
],
|
|
114
116
|
]
|
|
115
117
|
}
|
|
116
|
-
tapAnimationInDuration={
|
|
118
|
+
tapAnimationInDuration={130}
|
|
117
119
|
tapAnimationOutDuration={100}
|
|
118
120
|
testID="scroll-to-bottom-button"
|
|
119
121
|
testOnly_onPress={[Function]}
|
|
@@ -1869,8 +1869,10 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
1869
1869
|
}
|
|
1870
1870
|
hoverAnimationInDuration={50}
|
|
1871
1871
|
hoverAnimationOutDuration={100}
|
|
1872
|
+
immediatePressOut={false}
|
|
1872
1873
|
longPressAnimationOutDuration={100}
|
|
1873
1874
|
longPressDuration={500}
|
|
1875
|
+
moduleId={-1}
|
|
1874
1876
|
onButtonInteractionFinished={[Function]}
|
|
1875
1877
|
onButtonLongPress={[Function]}
|
|
1876
1878
|
onButtonPress={[Function]}
|
|
@@ -1898,7 +1900,7 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
1898
1900
|
],
|
|
1899
1901
|
]
|
|
1900
1902
|
}
|
|
1901
|
-
tapAnimationInDuration={
|
|
1903
|
+
tapAnimationInDuration={130}
|
|
1902
1904
|
tapAnimationOutDuration={100}
|
|
1903
1905
|
testID="attach-button"
|
|
1904
1906
|
testOnly_onPress={[Function]}
|
|
@@ -2255,8 +2257,10 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
2255
2257
|
}
|
|
2256
2258
|
hoverAnimationInDuration={50}
|
|
2257
2259
|
hoverAnimationOutDuration={100}
|
|
2260
|
+
immediatePressOut={false}
|
|
2258
2261
|
longPressAnimationOutDuration={100}
|
|
2259
2262
|
longPressDuration={500}
|
|
2263
|
+
moduleId={-1}
|
|
2260
2264
|
onButtonInteractionFinished={[Function]}
|
|
2261
2265
|
onButtonLongPress={[Function]}
|
|
2262
2266
|
onButtonPress={[Function]}
|
|
@@ -2284,7 +2288,7 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
2284
2288
|
],
|
|
2285
2289
|
]
|
|
2286
2290
|
}
|
|
2287
|
-
tapAnimationInDuration={
|
|
2291
|
+
tapAnimationInDuration={130}
|
|
2288
2292
|
tapAnimationOutDuration={100}
|
|
2289
2293
|
testID="send-button"
|
|
2290
2294
|
testOnly_onPress={[Function]}
|
|
@@ -2445,8 +2449,10 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
2445
2449
|
}
|
|
2446
2450
|
hoverAnimationInDuration={50}
|
|
2447
2451
|
hoverAnimationOutDuration={100}
|
|
2452
|
+
immediatePressOut={false}
|
|
2448
2453
|
longPressAnimationOutDuration={100}
|
|
2449
2454
|
longPressDuration={500}
|
|
2455
|
+
moduleId={-1}
|
|
2450
2456
|
onButtonInteractionFinished={[Function]}
|
|
2451
2457
|
onButtonLongPress={[Function]}
|
|
2452
2458
|
onButtonPress={[Function]}
|
|
@@ -2474,7 +2480,7 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
2474
2480
|
],
|
|
2475
2481
|
]
|
|
2476
2482
|
}
|
|
2477
|
-
tapAnimationInDuration={
|
|
2483
|
+
tapAnimationInDuration={130}
|
|
2478
2484
|
tapAnimationOutDuration={100}
|
|
2479
2485
|
testID="upload-photo-touchable"
|
|
2480
2486
|
testOnly_onPress={[Function]}
|
|
@@ -2600,8 +2606,10 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
2600
2606
|
}
|
|
2601
2607
|
hoverAnimationInDuration={50}
|
|
2602
2608
|
hoverAnimationOutDuration={100}
|
|
2609
|
+
immediatePressOut={false}
|
|
2603
2610
|
longPressAnimationOutDuration={100}
|
|
2604
2611
|
longPressDuration={500}
|
|
2612
|
+
moduleId={-1}
|
|
2605
2613
|
onButtonInteractionFinished={[Function]}
|
|
2606
2614
|
onButtonLongPress={[Function]}
|
|
2607
2615
|
onButtonPress={[Function]}
|
|
@@ -2629,7 +2637,7 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
2629
2637
|
],
|
|
2630
2638
|
]
|
|
2631
2639
|
}
|
|
2632
|
-
tapAnimationInDuration={
|
|
2640
|
+
tapAnimationInDuration={130}
|
|
2633
2641
|
tapAnimationOutDuration={100}
|
|
2634
2642
|
testID="take-photo-touchable"
|
|
2635
2643
|
testOnly_onPress={[Function]}
|
|
@@ -2784,8 +2792,10 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
2784
2792
|
}
|
|
2785
2793
|
hoverAnimationInDuration={50}
|
|
2786
2794
|
hoverAnimationOutDuration={100}
|
|
2795
|
+
immediatePressOut={false}
|
|
2787
2796
|
longPressAnimationOutDuration={100}
|
|
2788
2797
|
longPressDuration={500}
|
|
2798
|
+
moduleId={-1}
|
|
2789
2799
|
onButtonInteractionFinished={[Function]}
|
|
2790
2800
|
onButtonLongPress={[Function]}
|
|
2791
2801
|
onButtonPress={[Function]}
|
|
@@ -2813,7 +2823,7 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
2813
2823
|
],
|
|
2814
2824
|
]
|
|
2815
2825
|
}
|
|
2816
|
-
tapAnimationInDuration={
|
|
2826
|
+
tapAnimationInDuration={130}
|
|
2817
2827
|
tapAnimationOutDuration={100}
|
|
2818
2828
|
testID="upload-file-touchable"
|
|
2819
2829
|
testOnly_onPress={[Function]}
|
|
@@ -2935,8 +2945,10 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
2935
2945
|
}
|
|
2936
2946
|
hoverAnimationInDuration={50}
|
|
2937
2947
|
hoverAnimationOutDuration={100}
|
|
2948
|
+
immediatePressOut={false}
|
|
2938
2949
|
longPressAnimationOutDuration={100}
|
|
2939
2950
|
longPressDuration={500}
|
|
2951
|
+
moduleId={-1}
|
|
2940
2952
|
onButtonInteractionFinished={[Function]}
|
|
2941
2953
|
onButtonLongPress={[Function]}
|
|
2942
2954
|
onButtonPress={[Function]}
|
|
@@ -2964,7 +2976,7 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
2964
2976
|
],
|
|
2965
2977
|
]
|
|
2966
2978
|
}
|
|
2967
|
-
tapAnimationInDuration={
|
|
2979
|
+
tapAnimationInDuration={130}
|
|
2968
2980
|
tapAnimationOutDuration={100}
|
|
2969
2981
|
testID="commands-touchable"
|
|
2970
2982
|
testOnly_onPress={[Function]}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { I18nManager, Text, View } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { render } from '@testing-library/react-native';
|
|
4
|
+
import { act, render } from '@testing-library/react-native';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
SwipeRegistryProvider,
|
|
8
|
+
useSwipeRegistryContext,
|
|
9
|
+
} from '../../../contexts/swipeableContext/SwipeRegistryContext';
|
|
7
10
|
import { SwipableWrapper } from '../SwipableWrapper';
|
|
8
11
|
|
|
9
12
|
const mockReanimatedSwipeable = jest.fn(({ children }: React.PropsWithChildren) => (
|
|
@@ -95,4 +98,67 @@ describe('SwipableWrapper', () => {
|
|
|
95
98
|
undefined,
|
|
96
99
|
);
|
|
97
100
|
});
|
|
101
|
+
describe('swipe registry', () => {
|
|
102
|
+
type Registry = ReturnType<typeof useSwipeRegistryContext>;
|
|
103
|
+
|
|
104
|
+
const RegistryProbe = ({ onRegistry }: { onRegistry: (registry: Registry) => void }) => {
|
|
105
|
+
onRegistry(useSwipeRegistryContext());
|
|
106
|
+
return null;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const Rows = ({ ids, onRegistry }: { ids: string[]; onRegistry: (r: Registry) => void }) => (
|
|
110
|
+
<SwipeRegistryProvider>
|
|
111
|
+
<RegistryProbe onRegistry={onRegistry} />
|
|
112
|
+
{ids.map((id) => (
|
|
113
|
+
<SwipableWrapper key={id} swipeableId={id}>
|
|
114
|
+
<Text>{id}</Text>
|
|
115
|
+
</SwipableWrapper>
|
|
116
|
+
))}
|
|
117
|
+
</SwipeRegistryProvider>
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
// The mocked swipeable gets the row's <Text> as children, so its label identifies the row.
|
|
121
|
+
const openRow = (id: string) => {
|
|
122
|
+
const props = mockReanimatedSwipeable.mock.calls
|
|
123
|
+
.map(([callProps]) => callProps as React.PropsWithChildren<Record<string, unknown>>)
|
|
124
|
+
.filter(
|
|
125
|
+
(callProps) =>
|
|
126
|
+
React.isValidElement<{ children: string }>(callProps.children) &&
|
|
127
|
+
callProps.children.props.children === id,
|
|
128
|
+
)
|
|
129
|
+
.pop();
|
|
130
|
+
act(() => {
|
|
131
|
+
(props?.onSwipeableOpenStartDrag as (direction: string) => void)('left');
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
it('stops reporting an open swipeable once that swipeable unmounts', () => {
|
|
136
|
+
let registry: Registry | undefined;
|
|
137
|
+
const onRegistry = (r: Registry) => {
|
|
138
|
+
registry = r;
|
|
139
|
+
};
|
|
140
|
+
const { rerender } = render(<Rows ids={['a', 'b']} onRegistry={onRegistry} />);
|
|
141
|
+
|
|
142
|
+
openRow('b');
|
|
143
|
+
expect(registry?.hasOpen()).toBe(true);
|
|
144
|
+
|
|
145
|
+
// e.g. a pull-to-refresh that drops the page holding the open row
|
|
146
|
+
rerender(<Rows ids={['a']} onRegistry={onRegistry} />);
|
|
147
|
+
|
|
148
|
+
expect(registry?.hasOpen()).toBe(false);
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
it('keeps another row open when a closed row unmounts', () => {
|
|
152
|
+
let registry: Registry | undefined;
|
|
153
|
+
const onRegistry = (r: Registry) => {
|
|
154
|
+
registry = r;
|
|
155
|
+
};
|
|
156
|
+
const { rerender } = render(<Rows ids={['a', 'b']} onRegistry={onRegistry} />);
|
|
157
|
+
|
|
158
|
+
openRow('a');
|
|
159
|
+
rerender(<Rows ids={['a']} onRegistry={onRegistry} />);
|
|
160
|
+
|
|
161
|
+
expect(registry?.hasOpen()).toBe(true);
|
|
162
|
+
});
|
|
163
|
+
});
|
|
98
164
|
});
|
package/src/version.json
CHANGED