(uri: string)
| 885 | }, |
| 886 | |
| 887 | async getDataFromUri(uri: string): Promise<Uint8Array | null> { |
| 888 | if (!this.enableNative || !this._isModuleLoaded(RNSentry)) { |
| 889 | return null; |
| 890 | } |
| 891 | try { |
| 892 | const data: number[] = await RNSentry.getDataFromUri(uri); |
| 893 | return new Uint8Array(data); |
| 894 | } catch (error) { |
| 895 | debug.error('Error:', error); |
| 896 | return null; |
| 897 | } |
| 898 | }, |
| 899 | |
| 900 | popTimeToDisplayFor(key: string): Promise<number | undefined | null> { |
| 901 | if (!this.enableNative || !this._isModuleLoaded(RNSentry)) { |
no test coverage detected