src/screens/HomeScreen/__snapshots__/Header.test.js.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<View>
<View
style={
Array [
Object {
"height": 225,
},
Object {
"backgroundColor": "#ff0000",
},
]
}
>
<Component
resizeMode="contain"
source={
Object {
"height": 357,
"id": "4D776SGAHYRnNGHx1DES622EFYZ",
"revision": 1,
"uri": "https://red-badger.com/56K46slQYXyq6SOU4UzWUW8eL7iJg.jpg",
"width": 891,
}
}
style={
Array [
Object {
"alignSelf": "flex-end",
"marginHorizontal": 10,
"marginTop": 7,
},
Object {
"height": 218,
"width": 544.0840336134454,
},
]
}
/>
<ContentPadding
padding={Object {}}
style={
Object {
"alignItems": "flex-start",
"alignSelf": "center",
"height": "100%",
"justifyContent": "center",
"maxWidth": 440,
"position": "absolute",
"width": "100%",
}
}
>
<Text
color="lightNavyBlueColor"
markdown={false}
markdownStyle={Object {}}
style={
Object {
"backgroundColor": "#ffffff",
"paddingHorizontal": 8,
"paddingTop": 8,
"zIndex": 2,
}
}
type="uber"
>
heading
</Text>
<Text
color="lightNavyBlueColor"
markdown={false}
markdownStyle={Object {}}
style={
Array [
Object {
"backgroundColor": "#ffffff",
"paddingHorizontal": 8,
"paddingTop": 8,
"zIndex": 2,
},
Object {
"marginTop": -6,
"zIndex": 1,
},
]
}
type="uber"
>
headingLine2
</Text>
<Text
color="whiteColor"
markdown={false}
markdownStyle={Object {}}
style={
Object {
"backgroundColor": "#2d2f7f",
"paddingHorizontal": 8,
"paddingTop": 4,
}
}
type="h2"
>
subHeading
</Text>
</ContentPadding>
</View>
<ContentPadding
padding={Object {}}
style={
Object {
"alignSelf": "center",
"marginTop": -37,
"maxWidth": 440,
"width": "100%",
}
}
>
<SupportUsButton
bgBottomLeft={1}
bgTopRight={1}
centerText={true}
color="#2d2f7f"
contrast={false}
description="Be part of the movement"
navigation={null}
style={Object {}}
testID="home-header-support-us-button"
title="Support us"
url="SUPPORT_US"
/>
</ContentPadding>
</View>
`;
exports[`renders nothing when no banner is available 1`] = `""`;