diff --git a/configs/jsactions/rollup-plugin-studio-pro-format.mjs b/configs/jsactions/rollup-plugin-studio-pro-format.mjs new file mode 100644 index 000000000..e464bcb72 --- /dev/null +++ b/configs/jsactions/rollup-plugin-studio-pro-format.mjs @@ -0,0 +1,41 @@ +/** + * Rollup plugin to prepare JS action files for mx create-module-package transformation. + * + * Strips imports that mx will inject (mx-global, Big) and fixes displaced marker comments. + * The mx create-module-package command will then add the Studio Pro header and proper formatting. + * + * Adapted from pwawrapper's mendixMarkers plugin approach. + */ +export function studioProFormat() { + return { + name: "studio-pro-format", + generateBundle(options, bundle) { + let fixed = 0; + for (const [fileName, chunk] of Object.entries(bundle)) { + if (chunk.type !== "chunk" || !fileName.endsWith(".js")) continue; + const original = chunk.code; + const patched = prepareForMxTransform(original); + if (patched !== original) { + chunk.code = patched; + fixed++; + } + } + if (fixed > 0) { + console.log(`✅ Prepared ${fixed} file(s) for mx transformation`); + } + } + }; +} + +function prepareForMxTransform(code) { + // Strip imports that mx create-module-package will inject to avoid duplicates + let out = code + .replace(/^import\s+["']mx-global["'];\s*\n?/m, "") + .replace(/^import\s+\{[^}]+\}\s+from\s+["']big\.js["'];\s*\n?/m, ""); + + // The Studio Pro header comment (lines 1-7) will be naturally stripped by TypeScript + // since it's a standalone comment block not attached to code. + // mx create-module-package will regenerate it along with the imports. + + return out; +} diff --git a/configs/jsactions/rollup.config.mjs b/configs/jsactions/rollup.config.mjs index d8691fac1..f10559d1c 100644 --- a/configs/jsactions/rollup.config.mjs +++ b/configs/jsactions/rollup.config.mjs @@ -13,7 +13,7 @@ import { nodeResolve } from "@rollup/plugin-node-resolve"; import typescript from "@rollup/plugin-typescript"; import { collectDependencies, copyJsModule } from "./rollup-plugin-collect-dependencies.mjs"; import { licenseCustomTemplate, copyLicenseFile } from "./rollup-helper.mjs"; -import { bigJsImportReplacer } from "./rollup-plugin-bigjs-import-replacer.mjs"; +import { studioProFormat } from "./rollup-plugin-studio-pro-format.mjs"; const cwd = process.cwd(); @@ -75,7 +75,7 @@ export default async args => { }), nodeResolvePlugin, typescriptPlugin, - bigJsImportReplacer(), + studioProFormat(), i === files.length - 1 ? command([ async () => copyLicenseFile(cwd, outDir), diff --git a/packages/jsActions/mobile-resources-native/src/authentication/BiometricAuthentication.ts b/packages/jsActions/mobile-resources-native/src/authentication/BiometricAuthentication.ts index cd4582e5f..835f0c7fe 100644 --- a/packages/jsActions/mobile-resources-native/src/authentication/BiometricAuthentication.ts +++ b/packages/jsActions/mobile-resources-native/src/authentication/BiometricAuthentication.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { simplePrompt } from "@sbaiahmed1/react-native-biometrics"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/authentication/IsBiometricAuthenticationSupported.ts b/packages/jsActions/mobile-resources-native/src/authentication/IsBiometricAuthenticationSupported.ts index 020f11cdc..d61fbeaab 100644 --- a/packages/jsActions/mobile-resources-native/src/authentication/IsBiometricAuthenticationSupported.ts +++ b/packages/jsActions/mobile-resources-native/src/authentication/IsBiometricAuthenticationSupported.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { isSensorAvailable } from "@sbaiahmed1/react-native-biometrics"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/camera/SaveToPictureLibrary.ts b/packages/jsActions/mobile-resources-native/src/camera/SaveToPictureLibrary.ts index e8de56c93..944089311 100644 --- a/packages/jsActions/mobile-resources-native/src/camera/SaveToPictureLibrary.ts +++ b/packages/jsActions/mobile-resources-native/src/camera/SaveToPictureLibrary.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { CameraRoll } from "@react-native-camera-roll/camera-roll"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/clipboard/GetClipboardContent.ts b/packages/jsActions/mobile-resources-native/src/clipboard/GetClipboardContent.ts index 0a742a7d7..8e76b4e3e 100644 --- a/packages/jsActions/mobile-resources-native/src/clipboard/GetClipboardContent.ts +++ b/packages/jsActions/mobile-resources-native/src/clipboard/GetClipboardContent.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Clipboard } from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/clipboard/SetClipboardContent.ts b/packages/jsActions/mobile-resources-native/src/clipboard/SetClipboardContent.ts index 69b92b0ef..c3d616446 100644 --- a/packages/jsActions/mobile-resources-native/src/clipboard/SetClipboardContent.ts +++ b/packages/jsActions/mobile-resources-native/src/clipboard/SetClipboardContent.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Clipboard } from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/deeplink/ParseUrlToObject.ts b/packages/jsActions/mobile-resources-native/src/deeplink/ParseUrlToObject.ts index d82f56979..69f2cc5c5 100644 --- a/packages/jsActions/mobile-resources-native/src/deeplink/ParseUrlToObject.ts +++ b/packages/jsActions/mobile-resources-native/src/deeplink/ParseUrlToObject.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import UrlParse from "url-parse"; type Records = Record; diff --git a/packages/jsActions/mobile-resources-native/src/deeplink/RegisterDeepLink.ts b/packages/jsActions/mobile-resources-native/src/deeplink/RegisterDeepLink.ts index 7345bae41..e190e8052 100644 --- a/packages/jsActions/mobile-resources-native/src/deeplink/RegisterDeepLink.ts +++ b/packages/jsActions/mobile-resources-native/src/deeplink/RegisterDeepLink.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Linking } from "react-native"; type Nanoflow = (params: Record) => Promise; diff --git a/packages/jsActions/mobile-resources-native/src/file-download/DownloadFile.ts b/packages/jsActions/mobile-resources-native/src/file-download/DownloadFile.ts index 93216aefd..2f4617ea7 100644 --- a/packages/jsActions/mobile-resources-native/src/file-download/DownloadFile.ts +++ b/packages/jsActions/mobile-resources-native/src/file-download/DownloadFile.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Platform } from "react-native"; import RNBlobUtil from "react-native-blob-util"; import { open } from "react-native-file-viewer-turbo"; diff --git a/packages/jsActions/mobile-resources-native/src/network/IsCellularConnection.ts b/packages/jsActions/mobile-resources-native/src/network/IsCellularConnection.ts index 076a24ae6..04de1250d 100644 --- a/packages/jsActions/mobile-resources-native/src/network/IsCellularConnection.ts +++ b/packages/jsActions/mobile-resources-native/src/network/IsCellularConnection.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { fetch } from "@react-native-community/netinfo"; import { NetInfoType } from "../../typings/NetInfo"; diff --git a/packages/jsActions/mobile-resources-native/src/network/IsConnected.ts b/packages/jsActions/mobile-resources-native/src/network/IsConnected.ts index 3f2e605ee..a6cc535a4 100644 --- a/packages/jsActions/mobile-resources-native/src/network/IsConnected.ts +++ b/packages/jsActions/mobile-resources-native/src/network/IsConnected.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { fetch } from "@react-native-community/netinfo"; import { NetInfoType } from "../../typings/NetInfo"; diff --git a/packages/jsActions/mobile-resources-native/src/network/IsWifiConnection.ts b/packages/jsActions/mobile-resources-native/src/network/IsWifiConnection.ts index 6e1328afe..387b2eaf4 100644 --- a/packages/jsActions/mobile-resources-native/src/network/IsWifiConnection.ts +++ b/packages/jsActions/mobile-resources-native/src/network/IsWifiConnection.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { fetch } from "@react-native-community/netinfo"; import { NetInfoType } from "../../typings/NetInfo"; diff --git a/packages/jsActions/mobile-resources-native/src/notifications/CancelAllScheduledNotifications.ts b/packages/jsActions/mobile-resources-native/src/notifications/CancelAllScheduledNotifications.ts index 5c73fddfb..3c8ac9588 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/CancelAllScheduledNotifications.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/CancelAllScheduledNotifications.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { NativeModules } from "react-native"; import notifee from "react-native-notify-kit"; diff --git a/packages/jsActions/mobile-resources-native/src/notifications/CancelScheduledNotification.ts b/packages/jsActions/mobile-resources-native/src/notifications/CancelScheduledNotification.ts index 976a41741..0b8316aa8 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/CancelScheduledNotification.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/CancelScheduledNotification.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { NativeModules } from "react-native"; import notifee from "react-native-notify-kit"; diff --git a/packages/jsActions/mobile-resources-native/src/notifications/ClearAllDeliveredNotifications.ts b/packages/jsActions/mobile-resources-native/src/notifications/ClearAllDeliveredNotifications.ts index 5a940939b..411b691bd 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/ClearAllDeliveredNotifications.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/ClearAllDeliveredNotifications.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { NativeModules } from "react-native"; import notifee from "react-native-notify-kit"; diff --git a/packages/jsActions/mobile-resources-native/src/notifications/DisplayNotification.ts b/packages/jsActions/mobile-resources-native/src/notifications/DisplayNotification.ts index 39c40ed69..0d4093870 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/DisplayNotification.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/DisplayNotification.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { NativeModules, Platform } from "react-native"; import notifee, { AndroidChannel, AndroidImportance, Notification } from "react-native-notify-kit"; diff --git a/packages/jsActions/mobile-resources-native/src/notifications/GetPushNotificationToken.ts b/packages/jsActions/mobile-resources-native/src/notifications/GetPushNotificationToken.ts index a395b5e3b..080a412d1 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/GetPushNotificationToken.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/GetPushNotificationToken.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { NativeModules } from "react-native"; import messaging from "@react-native-firebase/messaging"; diff --git a/packages/jsActions/mobile-resources-native/src/notifications/HasNotificationPermission.ts b/packages/jsActions/mobile-resources-native/src/notifications/HasNotificationPermission.ts index d1598b170..ab2a304ba 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/HasNotificationPermission.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/HasNotificationPermission.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { NativeModules } from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/notifications/RequestNotificationPermission.ts b/packages/jsActions/mobile-resources-native/src/notifications/RequestNotificationPermission.ts index 36fddaa9c..f452dfe37 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/RequestNotificationPermission.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/RequestNotificationPermission.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { NativeModules, PermissionsAndroid, Platform } from "react-native"; import messaging from "@react-native-firebase/messaging"; diff --git a/packages/jsActions/mobile-resources-native/src/notifications/ScheduleNotification.ts b/packages/jsActions/mobile-resources-native/src/notifications/ScheduleNotification.ts index 457532ad4..f27aa1210 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/ScheduleNotification.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/ScheduleNotification.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Platform } from "react-native"; import notifee, { TimestampTrigger, @@ -14,6 +15,7 @@ import notifee, { Notification, AlarmType } from "react-native-notify-kit"; + // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/permissions/CheckGenericPermission.ts b/packages/jsActions/mobile-resources-native/src/permissions/CheckGenericPermission.ts index 2fca380aa..aead5c053 100644 --- a/packages/jsActions/mobile-resources-native/src/permissions/CheckGenericPermission.ts +++ b/packages/jsActions/mobile-resources-native/src/permissions/CheckGenericPermission.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Platform, NativeModules } from "react-native"; import { check, Permission, PERMISSIONS as RNPermissions } from "react-native-permissions"; import { ANDROIDPermissionName, IOSPermissionName } from "../../typings/RequestGenericPermission"; diff --git a/packages/jsActions/mobile-resources-native/src/permissions/RequestGenericPermission.ts b/packages/jsActions/mobile-resources-native/src/permissions/RequestGenericPermission.ts index e6fb1f165..b2f692445 100644 --- a/packages/jsActions/mobile-resources-native/src/permissions/RequestGenericPermission.ts +++ b/packages/jsActions/mobile-resources-native/src/permissions/RequestGenericPermission.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Alert, Platform, NativeModules } from "react-native"; import { check, diff --git a/packages/jsActions/mobile-resources-native/src/platform/ChangeStatusBar.ts b/packages/jsActions/mobile-resources-native/src/platform/ChangeStatusBar.ts index d40cc977d..8de8da113 100644 --- a/packages/jsActions/mobile-resources-native/src/platform/ChangeStatusBar.ts +++ b/packages/jsActions/mobile-resources-native/src/platform/ChangeStatusBar.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Platform, StatusBar, StatusBarAnimation, StatusBarStyle } from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/platform/HideKeyboard.ts b/packages/jsActions/mobile-resources-native/src/platform/HideKeyboard.ts index 5c0223d01..7ad616f94 100644 --- a/packages/jsActions/mobile-resources-native/src/platform/HideKeyboard.ts +++ b/packages/jsActions/mobile-resources-native/src/platform/HideKeyboard.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Keyboard } from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/platform/OpenInAppBrowser.ts b/packages/jsActions/mobile-resources-native/src/platform/OpenInAppBrowser.ts index cb0d3f5b3..8aea05b2c 100644 --- a/packages/jsActions/mobile-resources-native/src/platform/OpenInAppBrowser.ts +++ b/packages/jsActions/mobile-resources-native/src/platform/OpenInAppBrowser.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { openBrowser } from "@swan-io/react-native-browser"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/platform/PlaySound.ts b/packages/jsActions/mobile-resources-native/src/platform/PlaySound.ts index 3aa2be40e..5ca049b9e 100644 --- a/packages/jsActions/mobile-resources-native/src/platform/PlaySound.ts +++ b/packages/jsActions/mobile-resources-native/src/platform/PlaySound.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import Sound from "react-native-sound"; import RNBlobUtil from "react-native-blob-util"; import { Platform } from "react-native"; diff --git a/packages/jsActions/nanoflow-actions-native/src/client/DownloadWebFile.ts b/packages/jsActions/nanoflow-actions-native/src/client/DownloadWebFile.ts index c6dcef98c..77fc0aaf2 100644 --- a/packages/jsActions/nanoflow-actions-native/src/client/DownloadWebFile.ts +++ b/packages/jsActions/nanoflow-actions-native/src/client/DownloadWebFile.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/client/GetRemoteUrl.ts b/packages/jsActions/nanoflow-actions-native/src/client/GetRemoteUrl.ts index 1c1ae7a9e..aa90fbd1d 100644 --- a/packages/jsActions/nanoflow-actions-native/src/client/GetRemoteUrl.ts +++ b/packages/jsActions/nanoflow-actions-native/src/client/GetRemoteUrl.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/client/IsConnectedToServer.ts b/packages/jsActions/nanoflow-actions-native/src/client/IsConnectedToServer.ts index 557981f6e..17df42e10 100644 --- a/packages/jsActions/nanoflow-actions-native/src/client/IsConnectedToServer.ts +++ b/packages/jsActions/nanoflow-actions-native/src/client/IsConnectedToServer.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/client/RefreshEntity.ts b/packages/jsActions/nanoflow-actions-native/src/client/RefreshEntity.ts index 6c02a6c41..648406d5e 100644 --- a/packages/jsActions/nanoflow-actions-native/src/client/RefreshEntity.ts +++ b/packages/jsActions/nanoflow-actions-native/src/client/RefreshEntity.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/client/RefreshObject.ts b/packages/jsActions/nanoflow-actions-native/src/client/RefreshObject.ts index dce64f130..388b0d432 100644 --- a/packages/jsActions/nanoflow-actions-native/src/client/RefreshObject.ts +++ b/packages/jsActions/nanoflow-actions-native/src/client/RefreshObject.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/client/Reload.ts b/packages/jsActions/nanoflow-actions-native/src/client/Reload.ts index 1b3d55071..11a098f22 100644 --- a/packages/jsActions/nanoflow-actions-native/src/client/Reload.ts +++ b/packages/jsActions/nanoflow-actions-native/src/client/Reload.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/client/ShowConfirmation.ts b/packages/jsActions/nanoflow-actions-native/src/client/ShowConfirmation.ts index 8b883dde6..ec008c01c 100644 --- a/packages/jsActions/nanoflow-actions-native/src/client/ShowConfirmation.ts +++ b/packages/jsActions/nanoflow-actions-native/src/client/ShowConfirmation.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import ReactNative from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/client/SignOut.ts b/packages/jsActions/nanoflow-actions-native/src/client/SignOut.ts index 5a4e2c340..f756cfcec 100644 --- a/packages/jsActions/nanoflow-actions-native/src/client/SignOut.ts +++ b/packages/jsActions/nanoflow-actions-native/src/client/SignOut.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/client/ToggleSidebar.ts b/packages/jsActions/nanoflow-actions-native/src/client/ToggleSidebar.ts index ae2c474da..12d5709e2 100644 --- a/packages/jsActions/nanoflow-actions-native/src/client/ToggleSidebar.ts +++ b/packages/jsActions/nanoflow-actions-native/src/client/ToggleSidebar.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/external/CallPhoneNumber.ts b/packages/jsActions/nanoflow-actions-native/src/external/CallPhoneNumber.ts index f305bc7db..db6c43ad2 100644 --- a/packages/jsActions/nanoflow-actions-native/src/external/CallPhoneNumber.ts +++ b/packages/jsActions/nanoflow-actions-native/src/external/CallPhoneNumber.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import ReactNative from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/external/DraftEmail.ts b/packages/jsActions/nanoflow-actions-native/src/external/DraftEmail.ts index 3d106e812..f87ae87a1 100644 --- a/packages/jsActions/nanoflow-actions-native/src/external/DraftEmail.ts +++ b/packages/jsActions/nanoflow-actions-native/src/external/DraftEmail.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import ReactNative from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/external/NavigateTo.ts b/packages/jsActions/nanoflow-actions-native/src/external/NavigateTo.ts index d85978a23..2a717538e 100644 --- a/packages/jsActions/nanoflow-actions-native/src/external/NavigateTo.ts +++ b/packages/jsActions/nanoflow-actions-native/src/external/NavigateTo.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import ReactNative from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/external/OpenMap.ts b/packages/jsActions/nanoflow-actions-native/src/external/OpenMap.ts index ff637725b..9aa3f2e9a 100644 --- a/packages/jsActions/nanoflow-actions-native/src/external/OpenMap.ts +++ b/packages/jsActions/nanoflow-actions-native/src/external/OpenMap.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import ReactNative from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/external/OpenURL.ts b/packages/jsActions/nanoflow-actions-native/src/external/OpenURL.ts index c121d7807..2210dbe68 100644 --- a/packages/jsActions/nanoflow-actions-native/src/external/OpenURL.ts +++ b/packages/jsActions/nanoflow-actions-native/src/external/OpenURL.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import ReactNative from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/external/SendTextMessage.ts b/packages/jsActions/nanoflow-actions-native/src/external/SendTextMessage.ts index ab6549514..2ce2b4da9 100644 --- a/packages/jsActions/nanoflow-actions-native/src/external/SendTextMessage.ts +++ b/packages/jsActions/nanoflow-actions-native/src/external/SendTextMessage.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import ReactNative from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/external/Share.ts b/packages/jsActions/nanoflow-actions-native/src/external/Share.ts index 8d6b88125..a13f5e0f3 100644 --- a/packages/jsActions/nanoflow-actions-native/src/external/Share.ts +++ b/packages/jsActions/nanoflow-actions-native/src/external/Share.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import ReactNative from "react-native"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/geolocation/Geocode.ts b/packages/jsActions/nanoflow-actions-native/src/geolocation/Geocode.ts index 8b4a93a36..4bf860d8f 100644 --- a/packages/jsActions/nanoflow-actions-native/src/geolocation/Geocode.ts +++ b/packages/jsActions/nanoflow-actions-native/src/geolocation/Geocode.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import Geodecoder from "react-native-geocoder"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/geolocation/GetStraightLineDistance.ts b/packages/jsActions/nanoflow-actions-native/src/geolocation/GetStraightLineDistance.ts index a013cb54f..6974922b1 100644 --- a/packages/jsActions/nanoflow-actions-native/src/geolocation/GetStraightLineDistance.ts +++ b/packages/jsActions/nanoflow-actions-native/src/geolocation/GetStraightLineDistance.ts @@ -8,12 +8,9 @@ import { Big } from "big.js"; // BEGIN EXTRA CODE -// END EXTRA CODE type DistanceUnit = "KILOMETER" | "STATUTE_MILE" | "NAUTICAL_MILE"; -// BEGIN EXTRA CODE - function deg2rad(deg: Big): Big { return deg.times(Math.PI / 180); } diff --git a/packages/jsActions/nanoflow-actions-native/src/geolocation/RequestLocationPermission.ts b/packages/jsActions/nanoflow-actions-native/src/geolocation/RequestLocationPermission.ts index b9a253b19..8f86fcaaf 100644 --- a/packages/jsActions/nanoflow-actions-native/src/geolocation/RequestLocationPermission.ts +++ b/packages/jsActions/nanoflow-actions-native/src/geolocation/RequestLocationPermission.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { check, request, PERMISSIONS, RESULTS, openSettings } from "react-native-permissions"; import { Platform, Alert, ToastAndroid } from "react-native"; diff --git a/packages/jsActions/nanoflow-actions-native/src/geolocation/ReverseGeocode.ts b/packages/jsActions/nanoflow-actions-native/src/geolocation/ReverseGeocode.ts index 1b6a25d9f..4761185f0 100644 --- a/packages/jsActions/nanoflow-actions-native/src/geolocation/ReverseGeocode.ts +++ b/packages/jsActions/nanoflow-actions-native/src/geolocation/ReverseGeocode.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import Geodecoder from "react-native-geocoder"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/local-storage/ClearCachedSessionData.ts b/packages/jsActions/nanoflow-actions-native/src/local-storage/ClearCachedSessionData.ts index 01d92750a..f47959db2 100644 --- a/packages/jsActions/nanoflow-actions-native/src/local-storage/ClearCachedSessionData.ts +++ b/packages/jsActions/nanoflow-actions-native/src/local-storage/ClearCachedSessionData.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/local-storage/ClearLocalStorage.ts b/packages/jsActions/nanoflow-actions-native/src/local-storage/ClearLocalStorage.ts index 96ccc9d75..813e12f5d 100644 --- a/packages/jsActions/nanoflow-actions-native/src/local-storage/ClearLocalStorage.ts +++ b/packages/jsActions/nanoflow-actions-native/src/local-storage/ClearLocalStorage.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemObject.ts b/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemObject.ts index 7f312b69e..c6bd76b28 100644 --- a/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemObject.ts +++ b/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemObject.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import AsyncStorage from "@react-native-async-storage/async-storage"; import { StorageValue } from "../../typings/StorageValue"; diff --git a/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemObjectList.ts b/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemObjectList.ts index 16ed41d9d..a2ff80b17 100644 --- a/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemObjectList.ts +++ b/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemObjectList.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import AsyncStorage from "@react-native-async-storage/async-storage"; import { StorageValue } from "../../typings/StorageValue"; diff --git a/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemString.ts b/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemString.ts index 96770145a..5547295cb 100644 --- a/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemString.ts +++ b/packages/jsActions/nanoflow-actions-native/src/local-storage/GetStorageItemString.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import AsyncStorage from "@react-native-async-storage/async-storage"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/local-storage/RemoveStorageItem.ts b/packages/jsActions/nanoflow-actions-native/src/local-storage/RemoveStorageItem.ts index e956db73a..e86163d37 100644 --- a/packages/jsActions/nanoflow-actions-native/src/local-storage/RemoveStorageItem.ts +++ b/packages/jsActions/nanoflow-actions-native/src/local-storage/RemoveStorageItem.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import AsyncStorage from "@react-native-async-storage/async-storage"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemObject.ts b/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemObject.ts index cbc571d8d..2a03d7b75 100644 --- a/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemObject.ts +++ b/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemObject.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import AsyncStorage from "@react-native-async-storage/async-storage"; import { StorageValue } from "../../typings/StorageValue"; diff --git a/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemObjectList.ts b/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemObjectList.ts index 2de47af2b..22af0a184 100644 --- a/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemObjectList.ts +++ b/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemObjectList.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import AsyncStorage from "@react-native-async-storage/async-storage"; import { StorageValue } from "../../typings/StorageValue"; diff --git a/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemString.ts b/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemString.ts index 0f5582988..bdbc509b8 100644 --- a/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemString.ts +++ b/packages/jsActions/nanoflow-actions-native/src/local-storage/SetStorageItemString.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import AsyncStorage from "@react-native-async-storage/async-storage"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/local-storage/StorageItemExists.ts b/packages/jsActions/nanoflow-actions-native/src/local-storage/StorageItemExists.ts index 9f00e1d2b..bc251bf2d 100644 --- a/packages/jsActions/nanoflow-actions-native/src/local-storage/StorageItemExists.ts +++ b/packages/jsActions/nanoflow-actions-native/src/local-storage/StorageItemExists.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import AsyncStorage from "@react-native-async-storage/async-storage"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/other/Base64Decode.ts b/packages/jsActions/nanoflow-actions-native/src/other/Base64Decode.ts index 4012998bb..e0e37437f 100644 --- a/packages/jsActions/nanoflow-actions-native/src/other/Base64Decode.ts +++ b/packages/jsActions/nanoflow-actions-native/src/other/Base64Decode.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Base64 } from "js-base64"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/other/Base64DecodeToImage.ts b/packages/jsActions/nanoflow-actions-native/src/other/Base64DecodeToImage.ts index 8a8f5c4cf..d32446db5 100644 --- a/packages/jsActions/nanoflow-actions-native/src/other/Base64DecodeToImage.ts +++ b/packages/jsActions/nanoflow-actions-native/src/other/Base64DecodeToImage.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Base64 } from "js-base64"; import RNBlobUtil from "react-native-blob-util"; import { NativeModules } from "react-native"; diff --git a/packages/jsActions/nanoflow-actions-native/src/other/Base64Encode.ts b/packages/jsActions/nanoflow-actions-native/src/other/Base64Encode.ts index 1d9e3da56..5acecef5c 100644 --- a/packages/jsActions/nanoflow-actions-native/src/other/Base64Encode.ts +++ b/packages/jsActions/nanoflow-actions-native/src/other/Base64Encode.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; import { Base64 } from "js-base64"; // BEGIN EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/other/FindObjectWithGUID.ts b/packages/jsActions/nanoflow-actions-native/src/other/FindObjectWithGUID.ts index 8c97c3172..067562468 100644 --- a/packages/jsActions/nanoflow-actions-native/src/other/FindObjectWithGUID.ts +++ b/packages/jsActions/nanoflow-actions-native/src/other/FindObjectWithGUID.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/other/GenerateUniqueID.ts b/packages/jsActions/nanoflow-actions-native/src/other/GenerateUniqueID.ts index 073015fbb..15ff2e35d 100644 --- a/packages/jsActions/nanoflow-actions-native/src/other/GenerateUniqueID.ts +++ b/packages/jsActions/nanoflow-actions-native/src/other/GenerateUniqueID.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE const COUNTER_STORE = "idCounter"; diff --git a/packages/jsActions/nanoflow-actions-native/src/other/GetGuid.ts b/packages/jsActions/nanoflow-actions-native/src/other/GetGuid.ts index b445104a8..b00a6c2bb 100644 --- a/packages/jsActions/nanoflow-actions-native/src/other/GetGuid.ts +++ b/packages/jsActions/nanoflow-actions-native/src/other/GetGuid.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/other/GetObjectByGuid.ts b/packages/jsActions/nanoflow-actions-native/src/other/GetObjectByGuid.ts index e83cf6115..1022932fb 100644 --- a/packages/jsActions/nanoflow-actions-native/src/other/GetObjectByGuid.ts +++ b/packages/jsActions/nanoflow-actions-native/src/other/GetObjectByGuid.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/nanoflow-actions-native/src/other/GetPlatform.ts b/packages/jsActions/nanoflow-actions-native/src/other/GetPlatform.ts index 13a736f06..5af8e28c1 100644 --- a/packages/jsActions/nanoflow-actions-native/src/other/GetPlatform.ts +++ b/packages/jsActions/nanoflow-actions-native/src/other/GetPlatform.ts @@ -5,6 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. +import { Big } from "big.js"; // BEGIN EXTRA CODE // END EXTRA CODE