Commit b8c82c7d authored by Laurin Quast's avatar Laurin Quast Committed by Dylan Vann

Allow overwriting imageContainer styles.

Closes #286
parent b18728db
...@@ -5,11 +5,11 @@ exports[`FastImage renders correctly. 1`] = ` ...@@ -5,11 +5,11 @@ exports[`FastImage renders correctly. 1`] = `
style={ style={
Array [ Array [
Object { Object {
"height": 44, "overflow": "hidden",
"width": 44,
}, },
Object { Object {
"overflow": "hidden", "height": 44,
"width": 44,
}, },
] ]
} }
...@@ -43,11 +43,11 @@ exports[`Renders a normal Image when not passed a uri. 1`] = ` ...@@ -43,11 +43,11 @@ exports[`Renders a normal Image when not passed a uri. 1`] = `
style={ style={
Array [ Array [
Object { Object {
"height": 44, "overflow": "hidden",
"width": 44,
}, },
Object { Object {
"overflow": "hidden", "height": 44,
"width": 44,
}, },
] ]
} }
......
...@@ -39,7 +39,7 @@ class FastImage extends Component { ...@@ -39,7 +39,7 @@ class FastImage extends Component {
if (fallback) { if (fallback) {
return ( return (
<View <View
style={[style, styles.imageContainer]} style={[styles.imageContainer, style]}
ref={this.captureRef} ref={this.captureRef}
> >
<FastImageView <FastImageView
...@@ -58,7 +58,7 @@ class FastImage extends Component { ...@@ -58,7 +58,7 @@ class FastImage extends Component {
} }
return ( return (
<View style={[style, styles.imageContainer]} ref={this.captureRef}> <View style={[styles.imageContainer, style]} ref={this.captureRef}>
<FastImageView <FastImageView
{...props} {...props}
style={StyleSheet.absoluteFill} style={StyleSheet.absoluteFill}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment