From 554243eb567cc587ce50a3f2224bbf42b931c9b4 Mon Sep 17 00:00:00 2001 From: Sam Mueller Date: Sat, 7 Apr 2018 21:02:43 -0700 Subject: [PATCH] Fix TouchHistoryMath import Summary: The reference needed to be updated after the file was moved in this commit: https://github.com/facebook/react-native/commit/06085d38366373f3135074dc14e2c9871ca4fe29 Otherwise, results in the packager failing with the following error: > Unable to resolve module TouchHistoryMath from /node_modules/react-native/Libraries/Interaction/PanResponder.js: Module TouchHistoryMath does not exist in the Haste module map Closes https://github.com/facebook/react-native/pull/18732 Differential Revision: D7547181 Pulled By: sebmarkbage fbshipit-source-id: 78028c2f46faa2ce130a1a0c25fcaca47d2516a8 --- Libraries/Interaction/PanResponder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Interaction/PanResponder.js b/Libraries/Interaction/PanResponder.js index db7d85c87..d927fa5fc 100644 --- a/Libraries/Interaction/PanResponder.js +++ b/Libraries/Interaction/PanResponder.js @@ -10,7 +10,7 @@ 'use strict'; const InteractionManager = require('./InteractionManager'); -const TouchHistoryMath = require('TouchHistoryMath'); +const TouchHistoryMath = require('./TouchHistoryMath'); const currentCentroidXOfTouchesChangedAfter = TouchHistoryMath.currentCentroidXOfTouchesChangedAfter; const currentCentroidYOfTouchesChangedAfter = TouchHistoryMath.currentCentroidYOfTouchesChangedAfter;