Skip to content

Commit

Permalink
Fix typing of View refs
Browse files Browse the repository at this point in the history
Reviewed By: olegbl

Differential Revision: D7192405

fbshipit-source-id: 9d9bce8202a5e8f44d92ef6d0afbf8f55e9ea95a
  • Loading branch information
elicwhite authored and facebook-github-bot committed Mar 8, 2018
1 parent ecd3d95 commit 49396aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Libraries/Image/ImageBackground.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const View = require('View');

const ensureComponentIsNative = require('ensureComponentIsNative');

import type {NativeMethodsMixinType} from 'ReactNativeTypes';

/**
* Very simple drop-in replacement for <Image> which supports nesting views.
*
Expand Down Expand Up @@ -53,7 +51,7 @@ class ImageBackground extends React.Component<$FlowFixMeProps> {
}
}

_viewRef: ?NativeMethodsMixinType = null;
_viewRef: ?React.ElementRef<typeof View> = null;

_captureRef = ref => {
this._viewRef = ref;
Expand Down

0 comments on commit 49396aa

Please sign in to comment.