From 49396aa78d218625c1933fa864acd70853faa9f9 Mon Sep 17 00:00:00 2001 From: Eli White Date: Thu, 8 Mar 2018 14:20:00 -0800 Subject: [PATCH] Fix typing of View refs Reviewed By: olegbl Differential Revision: D7192405 fbshipit-source-id: 9d9bce8202a5e8f44d92ef6d0afbf8f55e9ea95a --- Libraries/Image/ImageBackground.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Libraries/Image/ImageBackground.js b/Libraries/Image/ImageBackground.js index 95d2b688a35006..405bced59ce254 100644 --- a/Libraries/Image/ImageBackground.js +++ b/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 which supports nesting views. * @@ -53,7 +51,7 @@ class ImageBackground extends React.Component<$FlowFixMeProps> { } } - _viewRef: ?NativeMethodsMixinType = null; + _viewRef: ?React.ElementRef = null; _captureRef = ref => { this._viewRef = ref;