Skip to content

Commit 59aa268

Browse files
committed
fix build issues
1 parent 8b0e5dc commit 59aa268

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

templates/react-native/src/client.ts.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ class Client {
224224
}
225225

226226
this.realtime.url = url;
227+
// @ts-ignore
227228
this.realtime.socket = new WebSocket(url, undefined, {
228229
headers: {
229230
Origin: `{{ spec.title | caseLower }}-${Platform.OS}://${this.config.platform}`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class {{ service.name | caseUcfirst }} extends Service {
137137
apiHeaders['x-{{spec.title | caseLower }}-id'] = response.$id;
138138
}
139139

140-
let chunk = await FileSystem.readAsStringAsync(file.uri, {
140+
let chunk = await FileSystem.readAsStringAsync({{ parameter.name | caseCamel | escapeKeyword }}.uri, {
141141
encoding: FileSystem.EncodingType.Base64,
142142
position: offset,
143143
length: Service.CHUNK_SIZE

0 commit comments

Comments
 (0)