@applicaster/zapp-react-native-app 14.0.0-alpha.4104749434 → 14.0.0-alpha.4138342511
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 +21 -26
- package/package.json +6 -7
|
@@ -19,39 +19,34 @@ const isIOS = isApplePlatform();
|
|
|
19
19
|
const IS_DEBUGGER_ENABLED = false;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
this.processCallbacks(moduleID, methodID, params, onFail, onSucc);
|
|
32
|
-
if(global.nativeCallSyncHook)
|
|
33
|
-
{
|
|
34
|
-
return global.nativeCallSyncHook(moduleID, methodID, params);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
*/
|
|
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
|
+
*/
|
|
38
31
|
|
|
39
32
|
// Assign this to a dev-only button or useEffect call
|
|
40
33
|
const connectToRemoteDebugger = () => {
|
|
41
|
-
if (
|
|
34
|
+
if (__DEV__ && isIOS) {
|
|
35
|
+
try {
|
|
36
|
+
const { DevSettings, NativeModules } = require("react-native");
|
|
42
37
|
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
// eslint-disable-next-line no-console
|
|
39
|
+
console.warn(`Debugger connected: ${IS_DEBUGGER_ENABLED}`);
|
|
45
40
|
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
if (DevSettings?.setIsDebuggingRemotely) {
|
|
42
|
+
DevSettings.setIsDebuggingRemotely(IS_DEBUGGER_ENABLED);
|
|
43
|
+
}
|
|
48
44
|
|
|
49
|
-
|
|
45
|
+
NativeModules?.DevSettings?.setIsDebuggingRemotely?.(IS_DEBUGGER_ENABLED);
|
|
46
|
+
} catch (error) {
|
|
47
|
+
// eslint-disable-next-line no-console
|
|
48
|
+
console.error(`connectToRemoteDebugger message: ${error.message}`);
|
|
50
49
|
}
|
|
51
|
-
|
|
52
|
-
NativeModules?.DevSettings?.setIsDebuggingRemotely?.(IS_DEBUGGER_ENABLED);
|
|
53
|
-
} catch (error) {
|
|
54
|
-
console.error(`connectToRemoteDebugger message: ${error.message}`);
|
|
55
50
|
}
|
|
56
51
|
};
|
|
57
52
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-app",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.4138342511",
|
|
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-alpha.
|
|
31
|
-
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.
|
|
32
|
-
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.
|
|
33
|
-
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.
|
|
34
|
-
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.
|
|
30
|
+
"@applicaster/quick-brick-core": "14.0.0-alpha.4138342511",
|
|
31
|
+
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.4138342511",
|
|
32
|
+
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.4138342511",
|
|
33
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.4138342511",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.4138342511",
|
|
35
35
|
"axios": "^0.28.0",
|
|
36
36
|
"camelize": "^1.0.0",
|
|
37
37
|
"query-string": "7.1.3",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"@applicaster/zapp-react-native-tvos-ui-components": "*",
|
|
47
47
|
"@babel/runtime": "*",
|
|
48
48
|
"@react-native-community/netinfo": "*",
|
|
49
|
-
"immer": "*",
|
|
50
49
|
"react": "*",
|
|
51
50
|
"react-native": "*",
|
|
52
51
|
"react-native-fs": "*",
|