@applicaster/zapp-react-dom-app 14.0.0-alpha.2893452677 → 14.0.0-alpha.3011001369
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.
|
@@ -23,7 +23,15 @@ export function withBackToTopActionHOC(Component) {
|
|
|
23
23
|
const navigator = useNavigation();
|
|
24
24
|
const selectedEntry = navigator.getNestedEntry();
|
|
25
25
|
|
|
26
|
+
const isStartUpHook =
|
|
27
|
+
Array.isArray(navigator.startUpHooks) &&
|
|
28
|
+
navigator.startUpHooks.length > 0;
|
|
29
|
+
|
|
26
30
|
const backToTopAction = React.useCallback((): BACK_TO_TOP_ACTION => {
|
|
31
|
+
if (isRoot && isStartUpHook) {
|
|
32
|
+
return { action: "PLATFORM_BACK" };
|
|
33
|
+
}
|
|
34
|
+
|
|
27
35
|
if (isRoot && focusManager.isFocusOnMenu() && isHome) {
|
|
28
36
|
return { action: "PLATFORM_BACK" };
|
|
29
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-dom-app",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.3011001369",
|
|
4
4
|
"description": "Zapp App Component for Applicaster's Quick Brick React Native App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/applicaster/zapp-react-dom-app#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@applicaster/zapp-react-dom-ui-components": "14.0.0-alpha.
|
|
26
|
-
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.
|
|
27
|
-
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.
|
|
28
|
-
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.
|
|
29
|
-
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.
|
|
25
|
+
"@applicaster/zapp-react-dom-ui-components": "14.0.0-alpha.3011001369",
|
|
26
|
+
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.3011001369",
|
|
27
|
+
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.3011001369",
|
|
28
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.3011001369",
|
|
29
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.3011001369",
|
|
30
30
|
"abortcontroller-polyfill": "^1.7.5",
|
|
31
31
|
"typeface-montserrat": "^0.0.54",
|
|
32
32
|
"video.js": "7.14.3",
|