Skip to content

Commit 882b23f

Browse files
authored
[MOO-2232] - update native fs reference (#437)
2 parents 37531f5 + 34ac392 commit 882b23f

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

packages/jsActions/mobile-resources-native/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
- We fixed native file system module reference.
10+
911
## [11.3.5] Native Mobile Resources - 2026-2-4
1012

1113
- Changed a caption for the existing "Download file" action to "Download native file".

packages/jsActions/mobile-resources-native/src/camera/TakePicture.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export async function TakePicture(
131131
{},
132132
blob,
133133
async () => {
134-
await NativeModules.NativeFsModule.remove(filePathWithoutFileScheme);
134+
await NativeModules.MendixNative.fsRemove(filePathWithoutFileScheme);
135135

136136
imageObject.set("Name", filename);
137137

@@ -142,7 +142,7 @@ export async function TakePicture(
142142
});
143143
},
144144
async (error: Error) => {
145-
await NativeModules.NativeFsModule.remove(filePathWithoutFileScheme);
145+
await NativeModules.MendixNative.fsRemove(filePathWithoutFileScheme);
146146

147147
reject(error);
148148
}

packages/jsActions/mobile-resources-native/src/camera/TakePictureAdvanced.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export async function TakePictureAdvanced(
184184
{},
185185
blob,
186186
async () => {
187-
await NativeModules.NativeFsModule.remove(filePathWithoutFileScheme);
187+
await NativeModules.MendixNative.fsRemove(filePathWithoutFileScheme);
188188

189189
imageObject.set("Name", filename);
190190

@@ -195,7 +195,7 @@ export async function TakePictureAdvanced(
195195
});
196196
},
197197
async (error: Error) => {
198-
await NativeModules.NativeFsModule.remove(filePathWithoutFileScheme);
198+
await NativeModules.MendixNative.fsRemove(filePathWithoutFileScheme);
199199

200200
reject(error);
201201
}

0 commit comments

Comments
 (0)