Skip to content

Commit 8b0e5dc

Browse files
committed
fix check
1 parent bdfc605 commit 8b0e5dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/react-native/src/services/template.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class {{ service.name | caseUcfirst }} extends Service {
143143
length: Service.CHUNK_SIZE
144144
});
145145
var path = `data:${{'{'}}{{ parameter.name | caseCamel | escapeKeyword }}.type{{'}'}};base64,${{'{'}}chunk{{'}'}}`;
146-
if (Device.osName === 'Android') {
146+
if (Platform.OS.toLowerCase() === 'android') {
147147
path = FileSystem.cacheDirectory + '/tmp_chunk_' + timestamp;
148148
await FileSystem.writeAsStringAsync(path, chunk, {encoding: FileSystem.EncodingType.Base64});
149149
}

0 commit comments

Comments
 (0)