Skip to content

Commit

Permalink
Embeds sentry logo as a base64 encoded png
Browse files Browse the repository at this point in the history
  • Loading branch information
antonis committed Dec 16, 2024
1 parent 1350545 commit 727a423
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/js/feedback/FeedbackForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
View
} from 'react-native';

import { sentryLogo } from './branding';
import { defaultConfiguration } from './defaults';
import defaultStyles from './FeedbackForm.styles';
import type { FeedbackFormProps, FeedbackFormState, FeedbackFormStyles,FeedbackGeneralConfiguration, FeedbackTextConfiguration } from './FeedbackForm.types';
Expand Down Expand Up @@ -108,7 +109,7 @@ export class FeedbackForm extends React.Component<FeedbackFormProps, FeedbackFor
<Text style={styles.title}>{text.formTitle}</Text>
{config.showBranding && (
<Image
source={{ uri: 'https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png' }}
source={{ uri: sentryLogo }}
style={styles.sentryLogo}
testID='sentry-logo'
/>
Expand Down
5 changes: 5 additions & 0 deletions packages/core/src/js/feedback/branding.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* Base64 encoded PNG image of the Sentry logo (source https://sentry.io/branding/)
*/
export const sentryLogo =
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAC4CAYAAACmeqNfAAAAAXNSR0IArs4c6QAADU5JREFUeF7tnU12HDcShKt0HstLz+xGusXIl5F4Gcu3sGZna2n5PFN+RaroYrO7GhH5A6AQWurhJxGZX2YC3STnSf+kgBS4qcAsbaSAFLitgABRdEiBAwUEiMJDCggQxYAU4BRQBeF006xBFBAggzhax+QUECCcbpo1iAICZBBH65icAgKE002zBlFAgAziaB2TU0CAcLpp1iAKCJBBHK1jcgoIEE43zRpEAQEyiKN1TE4BAcLpplmDKCBABnG0jskpIEA43TRrEAUEyCCO1jE5BQQIp5tmDaKAABnE0Tomp4AA4XTTrEEUECCDOFrH5BQQIJ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