You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: javascriptsource/nativemobileresources/actions/ChangeStatusBar.js
+8-16
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,6 @@
1
+
import{StatusBar,Platform}from'react-native';
2
+
1
3
// This file was generated by Mendix Studio Pro.
2
-
//
3
-
// WARNING: Only the following code will be retained when actions are regenerated:
4
-
// - the import list
5
-
// - the code between BEGIN USER CODE and END USER CODE
6
-
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7
-
// Other code you write will be lost the next time you deploy the project.
8
-
import{Big}from"big.js";
9
-
import{StatusBar,Platform}from'react-native';
10
-
11
-
// BEGIN EXTRA CODE
12
-
// END EXTRA CODE
13
-
14
4
/**
15
5
* @param {"NativeMobileResources.StatusBarStyle.DefaultStyle"|"NativeMobileResources.StatusBarStyle.LightContentStyle"|"NativeMobileResources.StatusBarStyle.DarkContentStyle"} style - If empty, the current style is not changed.
* @param {"NativeMobileResources.StatusBarHideShowAnimation.none"|"NativeMobileResources.StatusBarHideShowAnimation.fade"|"NativeMobileResources.StatusBarHideShowAnimation.slide"} animateHideShow - If empty, the default value 'none' is used.
Copy file name to clipboardExpand all lines: javascriptsource/nativemobileresources/actions/DownloadFile.js
+12-19
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,9 @@
1
+
import{Platform}from'react-native';
2
+
importRNBlobUtilfrom'react-native-blob-util';
3
+
importFileViewerfrom'react-native-file-viewer';
4
+
importmimeTypesfrom'mime';
5
+
1
6
// This file was generated by Mendix Studio Pro.
2
-
//
3
-
// WARNING: Only the following code will be retained when actions are regenerated:
4
-
// - the import list
5
-
// - the code between BEGIN USER CODE and END USER CODE
6
-
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7
-
// Other code you write will be lost the next time you deploy the project.
8
-
import{Big}from"big.js";
9
-
import{Platform}from'react-native';
10
-
importRNBlobUtilfrom'react-native-blob-util';
11
-
importFileViewerfrom'react-native-file-viewer';
12
-
importmimeTypesfrom'mime';
13
-
14
7
// BEGIN EXTRA CODE
15
8
functionformatPath(...pathArgs){
16
9
returnpathArgs.filter(arg=>!!arg).join("/");
@@ -31,15 +24,13 @@ async function getUniqueFilePath(path, fileName) {
31
24
returnuniqueFilePath;
32
25
}
33
26
// END EXTRA CODE
34
-
35
27
/**
36
28
* @param {MxObject} file
37
-
* @param {boolean} openWithOS - Set to True to let the OS open the file and ask the user with which applciation.
38
-
Set to False if the file only needs to be saved to the device storage.
29
+
* @param {boolean} openWithOS - Set to True to let the OS open the file and ask the user with which applciation.\nSet to False if the file only needs to be saved to the device storage.
39
30
* @returns {Promise.<void>}
40
31
*/
41
-
exportasyncfunctionDownloadFile(file,openWithOS){
42
-
// BEGIN USER CODE
32
+
asyncfunctionDownloadFile(file,openWithOS){
33
+
// BEGIN USER CODE
43
34
if(!file){
44
35
returnPromise.reject(newError("Input parameter 'file' is required"));
45
36
}
@@ -67,5 +58,7 @@ export async function DownloadFile(file, openWithOS) {
0 commit comments