MCPcopy Create free account
hub / github.com/getsentry/sentry-react-native / getDataFromUri

Function getDataFromUri

packages/core/src/js/wrapper.ts:887–898  ·  view source on GitHub ↗
(uri: string)

Source from the content-addressed store, hash-verified

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)) {

Callers 1

FeedbackFormClass · 0.90

Calls 2

_isModuleLoadedMethod · 0.80
getDataFromUriMethod · 0.65

Tested by

no test coverage detected