Skip to content

Commit abffb8f

Browse files
committed
Fix root ref for plain Image component.
1 parent 4bba6db commit abffb8f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

FastImage.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ class FastImage extends Component {
1414
// If there's no source or source uri just fallback to Image.
1515
if (!source || !source.uri) {
1616
return (
17-
<Image {...props} source={source} onError={onError} onLoad={onLoad} />
17+
<Image
18+
ref={e => this._root = e}
19+
{...props}
20+
source={source}
21+
onError={onError}
22+
onLoad={onLoad}
23+
/>
1824
)
1925
}
2026

0 commit comments

Comments
 (0)