Skip to content

Commit 49396aa

Browse files
elicwhitefacebook-github-bot
authored andcommitted
Fix typing of View refs
Reviewed By: olegbl Differential Revision: D7192405 fbshipit-source-id: 9d9bce8202a5e8f44d92ef6d0afbf8f55e9ea95a
1 parent ecd3d95 commit 49396aa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Libraries/Image/ImageBackground.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ const View = require('View');
1717

1818
const ensureComponentIsNative = require('ensureComponentIsNative');
1919

20-
import type {NativeMethodsMixinType} from 'ReactNativeTypes';
21-
2220
/**
2321
* Very simple drop-in replacement for <Image> which supports nesting views.
2422
*
@@ -53,7 +51,7 @@ class ImageBackground extends React.Component<$FlowFixMeProps> {
5351
}
5452
}
5553

56-
_viewRef: ?NativeMethodsMixinType = null;
54+
_viewRef: ?React.ElementRef<typeof View> = null;
5755

5856
_captureRef = ref => {
5957
this._viewRef = ref;

0 commit comments

Comments
 (0)