We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdfc605 commit 8b0e5dcCopy full SHA for 8b0e5dc
templates/react-native/src/services/template.ts.twig
@@ -143,7 +143,7 @@ export class {{ service.name | caseUcfirst }} extends Service {
143
length: Service.CHUNK_SIZE
144
});
145
var path = `data:${{'{'}}{{ parameter.name | caseCamel | escapeKeyword }}.type{{'}'}};base64,${{'{'}}chunk{{'}'}}`;
146
- if (Device.osName === 'Android') {
+ if (Platform.OS.toLowerCase() === 'android') {
147
path = FileSystem.cacheDirectory + '/tmp_chunk_' + timestamp;
148
await FileSystem.writeAsStringAsync(path, chunk, {encoding: FileSystem.EncodingType.Base64});
149
}
0 commit comments