stream-chat-react-native-core 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/native.js +5 -2
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/types/types.js +174 -1
- package/lib/commonjs/types/types.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/native.js +5 -2
- package/lib/module/native.js.map +1 -1
- package/lib/module/types/types.js +174 -1
- package/lib/module/types/types.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/native.d.ts +5 -0
- package/lib/typescript/native.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +375 -0
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/native.ts +16 -2
- package/src/types/types.ts +429 -0
- package/src/version.json +1 -1
|
@@ -85,5 +85,380 @@ export interface DefaultStreamChatGenerics extends ExtendableGenerics {
|
|
|
85
85
|
}
|
|
86
86
|
export type UnknownType = Record<string, unknown>;
|
|
87
87
|
export type ValueOf<T> = T[keyof T];
|
|
88
|
+
export declare enum AndroidOutputFormat {
|
|
89
|
+
DEFAULT = 0,
|
|
90
|
+
THREE_GPP = 1,
|
|
91
|
+
MPEG_4 = 2,
|
|
92
|
+
AMR_NB = 3,
|
|
93
|
+
AMR_WB = 4,
|
|
94
|
+
AAC_ADIF = 5,
|
|
95
|
+
AAC_ADTS = 6,
|
|
96
|
+
RTP_AVP = 7,
|
|
97
|
+
MPEG2TS = 8,
|
|
98
|
+
WEBM = 9
|
|
99
|
+
}
|
|
100
|
+
export declare enum AndroidAudioEncoder {
|
|
101
|
+
DEFAULT = 0,
|
|
102
|
+
AMR_NB = 1,
|
|
103
|
+
AMR_WB = 2,
|
|
104
|
+
AAC = 3,
|
|
105
|
+
HE_AAC = 4,
|
|
106
|
+
AAC_ELD = 5
|
|
107
|
+
}
|
|
108
|
+
export declare enum IOSOutputFormat {
|
|
109
|
+
LINEARPCM = "lpcm",
|
|
110
|
+
AC3 = "ac-3",
|
|
111
|
+
'60958AC3' = "cac3",
|
|
112
|
+
APPLEIMA4 = "ima4",
|
|
113
|
+
MPEG4AAC = "aac ",
|
|
114
|
+
MPEG4CELP = "celp",
|
|
115
|
+
MPEG4HVXC = "hvxc",
|
|
116
|
+
MPEG4TWINVQ = "twvq",
|
|
117
|
+
MACE3 = "MAC3",
|
|
118
|
+
MACE6 = "MAC6",
|
|
119
|
+
ULAW = "ulaw",
|
|
120
|
+
ALAW = "alaw",
|
|
121
|
+
QDESIGN = "QDMC",
|
|
122
|
+
QDESIGN2 = "QDM2",
|
|
123
|
+
QUALCOMM = "Qclp",
|
|
124
|
+
MPEGLAYER1 = ".mp1",
|
|
125
|
+
MPEGLAYER2 = ".mp2",
|
|
126
|
+
MPEGLAYER3 = ".mp3",
|
|
127
|
+
APPLELOSSLESS = "alac",
|
|
128
|
+
MPEG4AAC_HE = "aach",
|
|
129
|
+
MPEG4AAC_LD = "aacl",
|
|
130
|
+
MPEG4AAC_ELD = "aace",
|
|
131
|
+
MPEG4AAC_ELD_SBR = "aacf",
|
|
132
|
+
MPEG4AAC_ELD_V2 = "aacg",
|
|
133
|
+
MPEG4AAC_HE_V2 = "aacp",
|
|
134
|
+
MPEG4AAC_SPATIAL = "aacs",
|
|
135
|
+
AMR = "samr",
|
|
136
|
+
AMR_WB = "sawb",
|
|
137
|
+
AUDIBLE = "AUDB",
|
|
138
|
+
ILBC = "ilbc",
|
|
139
|
+
DVIINTELIMA = 1836253201,
|
|
140
|
+
MICROSOFTGSM = 1836253233,
|
|
141
|
+
AES3 = "aes3",
|
|
142
|
+
ENHANCEDAC3 = "ec-3"
|
|
143
|
+
}
|
|
144
|
+
export declare enum IOSAudioQuality {
|
|
145
|
+
MIN = 0,
|
|
146
|
+
LOW = 32,
|
|
147
|
+
MEDIUM = 64,
|
|
148
|
+
HIGH = 96,
|
|
149
|
+
MAX = 127
|
|
150
|
+
}
|
|
151
|
+
export type RecordingOptionsAndroid = {
|
|
152
|
+
/**
|
|
153
|
+
* The desired audio encoder. See the [`AndroidAudioEncoder`](#androidaudioencoder) enum for all valid values.
|
|
154
|
+
*/
|
|
155
|
+
audioEncoder: AndroidAudioEncoder | number;
|
|
156
|
+
/**
|
|
157
|
+
* The desired file extension. Example valid values are `.3gp` and `.m4a`.
|
|
158
|
+
* For more information, see the [Android docs](https://developer.android.com/guide/topics/media/media-formats)
|
|
159
|
+
* for supported output formats.
|
|
160
|
+
*/
|
|
161
|
+
extension: string;
|
|
162
|
+
/**
|
|
163
|
+
* The desired file format. See the [`AndroidOutputFormat`](#androidoutputformat) enum for all valid values.
|
|
164
|
+
*/
|
|
165
|
+
outputFormat: AndroidOutputFormat | number;
|
|
166
|
+
/**
|
|
167
|
+
* The desired bit rate.
|
|
168
|
+
*
|
|
169
|
+
* Note that `prepareToRecordAsync()` may perform additional checks on the parameter to make sure whether the specified
|
|
170
|
+
* bit rate is applicable, and sometimes the passed bitRate will be clipped internally to ensure the audio recording
|
|
171
|
+
* can proceed smoothly based on the capabilities of the platform.
|
|
172
|
+
*
|
|
173
|
+
* @example `128000`
|
|
174
|
+
*/
|
|
175
|
+
bitRate?: number;
|
|
176
|
+
/**
|
|
177
|
+
* The desired maximum file size in bytes, after which the recording will stop (but `stopAndUnloadAsync()` must still
|
|
178
|
+
* be called after this point).
|
|
179
|
+
*
|
|
180
|
+
* @example `65536`
|
|
181
|
+
*/
|
|
182
|
+
maxFileSize?: number;
|
|
183
|
+
/**
|
|
184
|
+
* The desired number of channels.
|
|
185
|
+
*
|
|
186
|
+
* Note that `prepareToRecordAsync()` may perform additional checks on the parameter to make sure whether the specified
|
|
187
|
+
* number of audio channels are applicable.
|
|
188
|
+
*
|
|
189
|
+
* @example `1`, `2`
|
|
190
|
+
*/
|
|
191
|
+
numberOfChannels?: number;
|
|
192
|
+
/**
|
|
193
|
+
* The desired sample rate.
|
|
194
|
+
*
|
|
195
|
+
* Note that the sampling rate depends on the format for the audio recording, as well as the capabilities of the platform.
|
|
196
|
+
* For instance, the sampling rate supported by AAC audio coding standard ranges from 8 to 96 kHz,
|
|
197
|
+
* the sampling rate supported by AMRNB is 8kHz, and the sampling rate supported by AMRWB is 16kHz.
|
|
198
|
+
* Please consult with the related audio coding standard for the supported audio sampling rate.
|
|
199
|
+
*
|
|
200
|
+
* @example 44100
|
|
201
|
+
*/
|
|
202
|
+
sampleRate?: number;
|
|
203
|
+
};
|
|
204
|
+
export type RecordingOptionsIOS = {
|
|
205
|
+
/**
|
|
206
|
+
* The desired audio quality. See the [`IOSAudioQuality`](#iosaudioquality) enum for all valid values.
|
|
207
|
+
*/
|
|
208
|
+
audioQuality: IOSAudioQuality | number;
|
|
209
|
+
/**
|
|
210
|
+
* The desired bit rate.
|
|
211
|
+
*
|
|
212
|
+
* @example `128000`
|
|
213
|
+
*/
|
|
214
|
+
bitRate: number;
|
|
215
|
+
/**
|
|
216
|
+
* The desired file extension.
|
|
217
|
+
*
|
|
218
|
+
* @example `'.caf'`
|
|
219
|
+
*/
|
|
220
|
+
extension: string;
|
|
221
|
+
/**
|
|
222
|
+
* The desired number of channels.
|
|
223
|
+
*
|
|
224
|
+
* @example `1`, `2`
|
|
225
|
+
*/
|
|
226
|
+
numberOfChannels: number;
|
|
227
|
+
/**
|
|
228
|
+
* The desired sample rate.
|
|
229
|
+
*
|
|
230
|
+
* @example `44100`
|
|
231
|
+
*/
|
|
232
|
+
sampleRate: number;
|
|
233
|
+
/**
|
|
234
|
+
* The desired bit depth hint.
|
|
235
|
+
*
|
|
236
|
+
* @example `16`
|
|
237
|
+
*/
|
|
238
|
+
bitDepthHint?: number;
|
|
239
|
+
/**
|
|
240
|
+
* The desired bit rate strategy. See the next section for an enumeration of all valid values of `bitRateStrategy`.
|
|
241
|
+
*/
|
|
242
|
+
bitRateStrategy?: number;
|
|
243
|
+
/**
|
|
244
|
+
* The desired PCM bit depth.
|
|
245
|
+
*
|
|
246
|
+
* @example `16`
|
|
247
|
+
*/
|
|
248
|
+
linearPCMBitDepth?: number;
|
|
249
|
+
/**
|
|
250
|
+
* A boolean describing if the PCM data should be formatted in big endian.
|
|
251
|
+
*/
|
|
252
|
+
linearPCMIsBigEndian?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* A boolean describing if the PCM data should be encoded in floating point or integral values.
|
|
255
|
+
*/
|
|
256
|
+
linearPCMIsFloat?: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* The desired file format. See the [`IOSOutputFormat`](#iosoutputformat) enum for all valid values.
|
|
259
|
+
*/
|
|
260
|
+
outputFormat?: string | IOSOutputFormat | number;
|
|
261
|
+
};
|
|
262
|
+
export type RecordingOptionsWeb = {
|
|
263
|
+
bitsPerSecond?: number;
|
|
264
|
+
mimeType?: string;
|
|
265
|
+
};
|
|
266
|
+
export type ExpoRecordingOptions = {
|
|
267
|
+
/**
|
|
268
|
+
* Recording options for the Android platform.
|
|
269
|
+
*/
|
|
270
|
+
android: RecordingOptionsAndroid;
|
|
271
|
+
/**
|
|
272
|
+
* Recording options for the iOS platform.
|
|
273
|
+
*/
|
|
274
|
+
ios: RecordingOptionsIOS;
|
|
275
|
+
/**
|
|
276
|
+
* Recording options for the Web platform.
|
|
277
|
+
*/
|
|
278
|
+
web: RecordingOptionsWeb;
|
|
279
|
+
/**
|
|
280
|
+
* A boolean that determines whether audio level information will be part of the status object under the "metering" key.
|
|
281
|
+
*/
|
|
282
|
+
isMeteringEnabled?: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* A boolean that hints to keep the audio active after `prepareToRecordAsync` completes.
|
|
285
|
+
* Setting this value can improve the speed at which the recording starts. Only set this value to `true` when you call `startAsync`
|
|
286
|
+
* immediately after `prepareToRecordAsync`. This value is automatically set when using `Audio.recording.createAsync()`.
|
|
287
|
+
*/
|
|
288
|
+
keepAudioActiveHint?: boolean;
|
|
289
|
+
};
|
|
290
|
+
export type AudioMode = {
|
|
291
|
+
/**
|
|
292
|
+
* A boolean selecting if recording is enabled on iOS.
|
|
293
|
+
* > When this flag is set to `true`, playback may be routed to the phone earpiece instead of to the speaker. Set it back to `false` after stopping recording to reenable playback through the speaker.
|
|
294
|
+
* @default false
|
|
295
|
+
*/
|
|
296
|
+
allowsRecordingIOS: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* An enum selecting how your experience's audio should interact with the audio from other apps on Android.
|
|
299
|
+
*/
|
|
300
|
+
interruptionModeAndroid: InterruptionModeAndroid;
|
|
301
|
+
/**
|
|
302
|
+
* An enum selecting how your experience's audio should interact with the audio from other apps on iOS.
|
|
303
|
+
*/
|
|
304
|
+
interruptionModeIOS: InterruptionModeIOS;
|
|
305
|
+
/**
|
|
306
|
+
* A boolean selecting if your experience's audio should play in silent mode on iOS.
|
|
307
|
+
* @default false
|
|
308
|
+
*/
|
|
309
|
+
playsInSilentModeIOS: boolean;
|
|
310
|
+
/**
|
|
311
|
+
* A boolean selecting if the audio is routed to earpiece on Android.
|
|
312
|
+
* @default false
|
|
313
|
+
*/
|
|
314
|
+
playThroughEarpieceAndroid: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* A boolean selecting if your experience's audio should automatically be lowered in volume ("duck") if audio from another
|
|
317
|
+
* app interrupts your experience. If `false`, audio from other apps will pause your audio.
|
|
318
|
+
* @default true
|
|
319
|
+
*/
|
|
320
|
+
shouldDuckAndroid: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* A boolean selecting if the audio session (playback or recording) should stay active even when the app goes into background.
|
|
323
|
+
* > This is not available in Expo Go for iOS, it will only work in standalone apps.
|
|
324
|
+
* > To enable it for standalone apps, [follow the instructions below](#playing-or-recording-audio-in-background)
|
|
325
|
+
* > to add `UIBackgroundModes` to your app configuration.
|
|
326
|
+
* @default false
|
|
327
|
+
*/
|
|
328
|
+
staysActiveInBackground: boolean;
|
|
329
|
+
};
|
|
330
|
+
export declare enum InterruptionModeIOS {
|
|
331
|
+
/**
|
|
332
|
+
* **This is the default option.** If this option is set, your experience's audio is mixed with audio playing in background apps.
|
|
333
|
+
*/
|
|
334
|
+
MixWithOthers = 0,
|
|
335
|
+
/**
|
|
336
|
+
* If this option is set, your experience's audio interrupts audio from other apps.
|
|
337
|
+
*/
|
|
338
|
+
DoNotMix = 1,
|
|
339
|
+
/**
|
|
340
|
+
* If this option is set, your experience's audio lowers the volume ("ducks") of audio from other apps while your audio plays.
|
|
341
|
+
*/
|
|
342
|
+
DuckOthers = 2
|
|
343
|
+
}
|
|
344
|
+
export declare enum InterruptionModeAndroid {
|
|
345
|
+
/**
|
|
346
|
+
* If this option is set, your experience's audio interrupts audio from other apps.
|
|
347
|
+
*/
|
|
348
|
+
DoNotMix = 1,
|
|
349
|
+
/**
|
|
350
|
+
* **This is the default option.** If this option is set, your experience's audio lowers the volume ("ducks") of audio from other apps while your audio plays.
|
|
351
|
+
*/
|
|
352
|
+
DuckOthers = 2
|
|
353
|
+
}
|
|
354
|
+
export type ExpoAudioRecordingConfiguration = {
|
|
355
|
+
mode?: Partial<AudioMode>;
|
|
356
|
+
options?: Partial<ExpoRecordingOptions>;
|
|
357
|
+
};
|
|
358
|
+
export declare enum AudioSourceAndroidType {
|
|
359
|
+
DEFAULT = 0,
|
|
360
|
+
MIC = 1,
|
|
361
|
+
VOICE_UPLINK = 2,
|
|
362
|
+
VOICE_DOWNLINK = 3,
|
|
363
|
+
VOICE_CALL = 4,
|
|
364
|
+
CAMCORDER = 5,
|
|
365
|
+
VOICE_RECOGNITION = 6,
|
|
366
|
+
VOICE_COMMUNICATION = 7,
|
|
367
|
+
REMOTE_SUBMIX = 8,
|
|
368
|
+
UNPROCESSED = 9,
|
|
369
|
+
RADIO_TUNER = 1998,
|
|
370
|
+
HOTWORD = 1999
|
|
371
|
+
}
|
|
372
|
+
export declare enum OutputFormatAndroidType {
|
|
373
|
+
DEFAULT = 0,
|
|
374
|
+
THREE_GPP = 1,
|
|
375
|
+
MPEG_4 = 2,
|
|
376
|
+
AMR_NB = 3,
|
|
377
|
+
AMR_WB = 4,
|
|
378
|
+
AAC_ADIF = 5,
|
|
379
|
+
AAC_ADTS = 6,
|
|
380
|
+
OUTPUT_FORMAT_RTP_AVP = 7,
|
|
381
|
+
MPEG_2_TS = 8,
|
|
382
|
+
WEBM = 9
|
|
383
|
+
}
|
|
384
|
+
export declare enum AudioEncoderAndroidType {
|
|
385
|
+
DEFAULT = 0,
|
|
386
|
+
AMR_NB = 1,
|
|
387
|
+
AMR_WB = 2,
|
|
388
|
+
AAC = 3,
|
|
389
|
+
HE_AAC = 4,
|
|
390
|
+
AAC_ELD = 5,
|
|
391
|
+
VORBIS = 6
|
|
392
|
+
}
|
|
393
|
+
export declare enum AVEncodingOption {
|
|
394
|
+
aac = "aac",
|
|
395
|
+
alac = "alac",
|
|
396
|
+
alaw = "alaw",
|
|
397
|
+
amr = "amr",
|
|
398
|
+
flac = "flac",
|
|
399
|
+
ima4 = "ima4",
|
|
400
|
+
lpcm = "lpcm",
|
|
401
|
+
MAC3 = "MAC3",
|
|
402
|
+
MAC6 = "MAC6",
|
|
403
|
+
mp1 = "mp1",
|
|
404
|
+
mp2 = "mp2",
|
|
405
|
+
mp4 = "mp4",
|
|
406
|
+
opus = "opus",
|
|
407
|
+
ulaw = "ulaw",
|
|
408
|
+
wav = "wav"
|
|
409
|
+
}
|
|
410
|
+
export declare enum AVModeIOSOption {
|
|
411
|
+
gamechat = "gamechat",
|
|
412
|
+
measurement = "measurement",
|
|
413
|
+
movieplayback = "movieplayback",
|
|
414
|
+
spokenaudio = "spokenaudio",
|
|
415
|
+
videochat = "videochat",
|
|
416
|
+
videorecording = "videorecording",
|
|
417
|
+
voicechat = "voicechat",
|
|
418
|
+
voiceprompt = "voiceprompt"
|
|
419
|
+
}
|
|
420
|
+
export type AVModeIOSType = AVModeIOSOption.gamechat | AVModeIOSOption.measurement | AVModeIOSOption.movieplayback | AVModeIOSOption.spokenaudio | AVModeIOSOption.videochat | AVModeIOSOption.videorecording | AVModeIOSOption.voicechat | AVModeIOSOption.voiceprompt;
|
|
421
|
+
export declare enum AVEncoderAudioQualityIOSType {
|
|
422
|
+
min = 0,
|
|
423
|
+
low = 32,
|
|
424
|
+
medium = 64,
|
|
425
|
+
high = 96,
|
|
426
|
+
max = 127
|
|
427
|
+
}
|
|
428
|
+
export declare enum AVLinearPCMBitDepthKeyIOSType {
|
|
429
|
+
'bit8' = 8,
|
|
430
|
+
'bit16' = 16,
|
|
431
|
+
'bit24' = 24,
|
|
432
|
+
'bit32' = 32
|
|
433
|
+
}
|
|
434
|
+
type AVEncodingType = AVEncodingOption.lpcm | AVEncodingOption.ima4 | AVEncodingOption.aac | AVEncodingOption.MAC3 | AVEncodingOption.MAC6 | AVEncodingOption.ulaw | AVEncodingOption.alaw | AVEncodingOption.mp1 | AVEncodingOption.mp2 | AVEncodingOption.mp4 | AVEncodingOption.alac | AVEncodingOption.amr | AVEncodingOption.flac | AVEncodingOption.opus | AVEncodingOption.wav;
|
|
435
|
+
export interface AudioSet {
|
|
436
|
+
AudioChannelsAndroid?: number;
|
|
437
|
+
AudioEncoderAndroid?: AudioEncoderAndroidType;
|
|
438
|
+
AudioEncodingBitRateAndroid?: number;
|
|
439
|
+
AudioSamplingRateAndroid?: number;
|
|
440
|
+
AudioSourceAndroid?: AudioSourceAndroidType;
|
|
441
|
+
AVEncoderAudioQualityKeyIOS?: AVEncoderAudioQualityIOSType;
|
|
442
|
+
AVEncoderBitRateKeyIOS?: number;
|
|
443
|
+
AVFormatIDKeyIOS?: AVEncodingType;
|
|
444
|
+
AVLinearPCMBitDepthKeyIOS?: AVLinearPCMBitDepthKeyIOSType;
|
|
445
|
+
AVLinearPCMIsBigEndianKeyIOS?: boolean;
|
|
446
|
+
AVLinearPCMIsFloatKeyIOS?: boolean;
|
|
447
|
+
AVLinearPCMIsNonInterleavedIOS?: boolean;
|
|
448
|
+
AVModeIOS?: AVModeIOSType;
|
|
449
|
+
AVNumberOfChannelsKeyIOS?: number;
|
|
450
|
+
AVSampleRateKeyIOS?: number;
|
|
451
|
+
OutputFormatAndroid?: OutputFormatAndroidType;
|
|
452
|
+
}
|
|
453
|
+
export type RNCLIRecordingOptions = {
|
|
454
|
+
audioSet?: AudioSet;
|
|
455
|
+
/**
|
|
456
|
+
* A boolean that determines whether audio level information will be part of the status object under the "metering" key.
|
|
457
|
+
*/
|
|
458
|
+
isMeteringEnabled?: boolean;
|
|
459
|
+
};
|
|
460
|
+
export type RNCLIAudioRecordingConfiguration = {
|
|
461
|
+
options?: RNCLIRecordingOptions;
|
|
462
|
+
};
|
|
88
463
|
export {};
|
|
89
464
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,cAAc,mBAAmB;CAClC;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAA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,CAAC,GAAG,GACpB,gBAAgB,CAAC,IAAI,GACrB,gBAAgB,CAAC,GAAG,GACpB,gBAAgB,CAAC,IAAI,GACrB,gBAAgB,CAAC,IAAI,GACrB,gBAAgB,CAAC,GAAG,CAAC;AAEzB,MAAM,WAAW,QAAQ;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,uBAAuB,CAAC;IAC9C,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;IAC5C,2BAA2B,CAAC,EAAE,4BAA4B,CAAC;IAC3D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,yBAAyB,CAAC,EAAE,6BAA6B,CAAC;IAC1D,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,uBAAuB,CAAC;CAC/C;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
package/src/native.ts
CHANGED
|
@@ -212,7 +212,12 @@ export type RecordingOptions = {
|
|
|
212
212
|
isMeteringEnabled?: boolean;
|
|
213
213
|
};
|
|
214
214
|
|
|
215
|
+
export type AudioRecordingConfiguration = {
|
|
216
|
+
options?: RecordingOptions;
|
|
217
|
+
};
|
|
218
|
+
|
|
215
219
|
export type AudioType = {
|
|
220
|
+
audioRecordingConfiguration: AudioRecordingConfiguration;
|
|
216
221
|
startRecording: (
|
|
217
222
|
options?: RecordingOptions,
|
|
218
223
|
onRecordingStatusUpdate?: (recordingStatus: RecordingStatus) => void,
|
|
@@ -284,6 +289,9 @@ type Handlers = {
|
|
|
284
289
|
getPhotos?: GetPhotos;
|
|
285
290
|
iOS14RefreshGallerySelection?: iOS14RefreshGallerySelection;
|
|
286
291
|
oniOS14GalleryLibrarySelectionChange?: OniOS14LibrarySelectionChange;
|
|
292
|
+
overrideAudioRecordingConfiguration?: (
|
|
293
|
+
audioRecordingConfiguration: AudioRecordingConfiguration,
|
|
294
|
+
) => AudioRecordingConfiguration;
|
|
287
295
|
pickDocument?: PickDocument;
|
|
288
296
|
pickImage?: PickImage;
|
|
289
297
|
saveFile?: SaveFile;
|
|
@@ -297,10 +305,16 @@ type Handlers = {
|
|
|
297
305
|
};
|
|
298
306
|
|
|
299
307
|
export const registerNativeHandlers = (handlers: Handlers) => {
|
|
300
|
-
if (handlers.Audio !==
|
|
308
|
+
if (handlers.Audio !== undefined) {
|
|
301
309
|
Audio = handlers.Audio;
|
|
302
310
|
}
|
|
303
311
|
|
|
312
|
+
if (Audio && handlers.overrideAudioRecordingConfiguration) {
|
|
313
|
+
Audio.audioRecordingConfiguration = handlers.overrideAudioRecordingConfiguration(
|
|
314
|
+
Audio.audioRecordingConfiguration,
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
|
|
304
318
|
if (handlers.compressImage) {
|
|
305
319
|
compressImage = handlers.compressImage;
|
|
306
320
|
}
|
|
@@ -345,7 +359,7 @@ export const registerNativeHandlers = (handlers: Handlers) => {
|
|
|
345
359
|
SDK = handlers.SDK;
|
|
346
360
|
}
|
|
347
361
|
|
|
348
|
-
if (handlers.shareImage !==
|
|
362
|
+
if (handlers.shareImage !== undefined) {
|
|
349
363
|
shareImage = handlers.shareImage;
|
|
350
364
|
}
|
|
351
365
|
|