Permalink
Browse files

Fix typing of View refs

Reviewed By: olegbl

Differential Revision: D7192405

fbshipit-source-id: 9d9bce8202a5e8f44d92ef6d0afbf8f55e9ea95a
  • Loading branch information...
TheSavior authored and facebook-github-bot committed Mar 8, 2018
1 parent ecd3d95 commit 49396aa78d218625c1933fa864acd70853faa9f9
Showing with 1 addition and 3 deletions.
  1. +1 −3 Libraries/Image/ImageBackground.js
@@ -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.
*
@@ -53,7 +51,7 @@ class ImageBackground extends React.Component<$FlowFixMeProps> {
}
}
_viewRef: ?NativeMethodsMixinType = null;
_viewRef: ?React.ElementRef<typeof View> = null;
_captureRef = ref => {
this._viewRef = ref;

0 comments on commit 49396aa

Please sign in to comment.