@applicaster/zapp-react-native-app 14.0.0-rc.37 → 14.0.0-rc.38
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/App/InteractionManager/index.js +25 -20
- package/package.json +6 -6
|
@@ -12,8 +12,6 @@ import { useRivers } from "@applicaster/zapp-react-native-utils/reactHooks/state
|
|
|
12
12
|
import { useErrorStore } from "@applicaster/quick-brick-core/App/ErrorBoundary/store";
|
|
13
13
|
import { isApplePlatform } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
14
14
|
|
|
15
|
-
import NativeDevSettings from "react-native/Libraries/NativeModules/specs/NativeDevSettings";
|
|
16
|
-
|
|
17
15
|
const getHome = R.compose(R.find(R.propEq("home", true)), R.values);
|
|
18
16
|
|
|
19
17
|
const isIOS = isApplePlatform();
|
|
@@ -21,27 +19,34 @@ const isIOS = isApplePlatform();
|
|
|
21
19
|
const IS_DEBUGGER_ENABLED = false;
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
this.processCallbacks(moduleID, methodID, params, onFail, onSucc);
|
|
34
|
-
if(global.nativeCallSyncHook)
|
|
35
|
-
{
|
|
36
|
-
return global.nativeCallSyncHook(moduleID, methodID, params);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
*/
|
|
22
|
+
* This is a workaround to fix an error on start when debugger is connected.
|
|
23
|
+
* Update function body for this function `callNativeSyncHook`
|
|
24
|
+
* node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:167
|
|
25
|
+
|
|
26
|
+
this.processCallbacks(moduleID, methodID, params, onFail, onSucc);
|
|
27
|
+
if(global.nativeCallSyncHook) {
|
|
28
|
+
return global.nativeCallSyncHook(moduleID, methodID, params);
|
|
29
|
+
}
|
|
30
|
+
*/
|
|
40
31
|
|
|
41
32
|
// Assign this to a dev-only button or useEffect call
|
|
42
33
|
const connectToRemoteDebugger = () => {
|
|
43
|
-
if (isIOS) {
|
|
44
|
-
|
|
34
|
+
if (__DEV__ && isIOS) {
|
|
35
|
+
try {
|
|
36
|
+
const { DevSettings, NativeModules } = require("react-native");
|
|
37
|
+
|
|
38
|
+
// eslint-disable-next-line no-console
|
|
39
|
+
console.warn(`Debugger connected: ${IS_DEBUGGER_ENABLED}`);
|
|
40
|
+
|
|
41
|
+
if (DevSettings?.setIsDebuggingRemotely) {
|
|
42
|
+
DevSettings.setIsDebuggingRemotely(IS_DEBUGGER_ENABLED);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
NativeModules?.DevSettings?.setIsDebuggingRemotely?.(IS_DEBUGGER_ENABLED);
|
|
46
|
+
} catch (error) {
|
|
47
|
+
// eslint-disable-next-line no-console
|
|
48
|
+
console.error(`connectToRemoteDebugger message: ${error.message}`);
|
|
49
|
+
}
|
|
45
50
|
}
|
|
46
51
|
};
|
|
47
52
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-app",
|
|
3
|
-
"version": "14.0.0-rc.
|
|
3
|
+
"version": "14.0.0-rc.38",
|
|
4
4
|
"description": "Zapp App Component for Applicaster's Quick Brick React Native App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@applicaster/quick-brick-core": "14.0.0-rc.
|
|
31
|
-
"@applicaster/zapp-react-native-bridge": "14.0.0-rc.
|
|
32
|
-
"@applicaster/zapp-react-native-redux": "14.0.0-rc.
|
|
33
|
-
"@applicaster/zapp-react-native-ui-components": "14.0.0-rc.
|
|
34
|
-
"@applicaster/zapp-react-native-utils": "14.0.0-rc.
|
|
30
|
+
"@applicaster/quick-brick-core": "14.0.0-rc.38",
|
|
31
|
+
"@applicaster/zapp-react-native-bridge": "14.0.0-rc.38",
|
|
32
|
+
"@applicaster/zapp-react-native-redux": "14.0.0-rc.38",
|
|
33
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-rc.38",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-rc.38",
|
|
35
35
|
"axios": "^0.28.0",
|
|
36
36
|
"camelize": "^1.0.0",
|
|
37
37
|
"query-string": "7.1.3",
|