@shoutem/ui 7.1.0-beta.14 → 7.1.0-beta.15
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.
|
@@ -12,6 +12,13 @@ function ToastProgressBar({
|
|
|
12
12
|
}) {
|
|
13
13
|
const progressValue = useRef(new Animated.Value(0)).current;
|
|
14
14
|
|
|
15
|
+
const handleAnimationEnd = useCallback(() => {
|
|
16
|
+
progressValue.setValue(0);
|
|
17
|
+
if (onProgressComplete) {
|
|
18
|
+
onProgressComplete();
|
|
19
|
+
}
|
|
20
|
+
}, [onProgressComplete, progressValue]);
|
|
21
|
+
|
|
15
22
|
useEffect(() => {
|
|
16
23
|
if (!visible) {
|
|
17
24
|
progressValue.setValue(0);
|
|
@@ -25,13 +32,6 @@ function ToastProgressBar({
|
|
|
25
32
|
}).start(handleAnimationEnd);
|
|
26
33
|
}, [visible, duration, handleAnimationEnd]);
|
|
27
34
|
|
|
28
|
-
const handleAnimationEnd = useCallback(() => {
|
|
29
|
-
progressValue.setValue(0);
|
|
30
|
-
if (onProgressComplete) {
|
|
31
|
-
onProgressComplete();
|
|
32
|
-
}
|
|
33
|
-
}, [onProgressComplete, progressValue]);
|
|
34
|
-
|
|
35
35
|
return (
|
|
36
36
|
<View style={style.container}>
|
|
37
37
|
<Animated.View
|
|
@@ -6,7 +6,6 @@ import { iframeModel } from '@native-html/iframe-plugin';
|
|
|
6
6
|
import table, {
|
|
7
7
|
cssRulesFromSpecs,
|
|
8
8
|
defaultTableStylesSpecs,
|
|
9
|
-
IGNORED_TAGS,
|
|
10
9
|
tableModel,
|
|
11
10
|
} from '@native-html/table-plugin';
|
|
12
11
|
import autoBindReact from 'auto-bind/react';
|
|
@@ -119,7 +118,6 @@ class SimpleHtml extends PureComponent {
|
|
|
119
118
|
...customHtmlElementModels,
|
|
120
119
|
},
|
|
121
120
|
WebView,
|
|
122
|
-
ignoredTags: IGNORED_TAGS,
|
|
123
121
|
domVisitors: { onElement, ...customDomVisitors },
|
|
124
122
|
};
|
|
125
123
|
|