From 2fd537c55dddd2a7e9906add5f6281b0444cc9b6 Mon Sep 17 00:00:00 2001 From: Geoff Lawson Date: Mon, 6 Jun 2016 13:47:21 -0700 Subject: [PATCH] =?UTF-8?q?Incorrect=20import=20reference=20of=20emptyFunc?= =?UTF-8?q?tion=20causes=20error=20when=20importi=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Experimental component SwipeableListView fails to import due to incorrect import reference. Followed example use of import of emptyFunction found in https://github.com/facebook/react-native/blob/master/Libraries/Components/TextInput/TextInput.js#L31 Closes https://github.com/facebook/react-native/pull/7954 Differential Revision: D3394202 fbshipit-source-id: db8ddc9d9635878f0ce1fb969ef6c6e3c27d63f3 --- Libraries/Experimental/SwipeableRow/SwipeableRow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Experimental/SwipeableRow/SwipeableRow.js b/Libraries/Experimental/SwipeableRow/SwipeableRow.js index 169642ef39fe6e..8c2e43d0e50e9e 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableRow.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableRow.js @@ -31,7 +31,7 @@ const View = require('View'); const {PropTypes} = React; -const emptyFunction = require('emptyFunction'); +const emptyFunction = require('fbjs/lib/emptyFunction'); // Position of the left of the swipable item when closed const CLOSED_LEFT_POSITION = 0;