Skip to content

Commit b781e90

Browse files
committed
fix: update IMAGE_HEIGHT and IMAGE_WIDTH for platform-specific styling in IterableEmbeddedBanner
1 parent b3aef75 commit b781e90

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/embedded/components/IterableEmbeddedBanner/IterableEmbeddedBanner.styles.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import { StyleSheet } from 'react-native';
1+
import { StyleSheet, Platform } from 'react-native';
22
import {
33
embeddedMediaImageBackgroundColors,
44
embeddedMediaImageBorderColors,
55
} from '../../constants/embeddedViewDefaults';
66

7-
export const IMAGE_HEIGHT = 70;
8-
export const IMAGE_WIDTH = 70;
7+
// See https://support.iterable.com/hc/en-us/articles/23230946708244-Out-of-the-Box-Views-for-Embedded-Messages#banners
8+
export const IMAGE_HEIGHT = Platform.OS === 'android' ? 80 : 100;
9+
export const IMAGE_WIDTH = Platform.OS === 'android' ? 80 : 100;
910

1011
export const styles = StyleSheet.create({
1112
body: {

0 commit comments

Comments
 (0)