From b01feb41d844755b235c32d3f9576a5d2e02e0e0 Mon Sep 17 00:00:00 2001 From: Adam Comella Date: Thu, 25 Aug 2016 17:36:33 -0700 Subject: [PATCH] Incremental: Fix require of performanceNow Summary: Due to an earlier commit, we now have to use the full path for requiring `performanceNow`. **Test plan (required)** Verified that the IncrementalExample works when adding it to UIExplorer. Closes https://github.com/facebook/react-native/pull/9595 Differential Revision: D3775101 Pulled By: javache fbshipit-source-id: 6252ce8c872896f4cfdb9a31bdbc79d6aaf4684d --- Libraries/Experimental/IncrementalExample.js | 2 +- Libraries/Interaction/JSEventLoopWatchdog.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Experimental/IncrementalExample.js b/Libraries/Experimental/IncrementalExample.js index a2b9176681..0e6779d451 100644 --- a/Libraries/Experimental/IncrementalExample.js +++ b/Libraries/Experimental/IncrementalExample.js @@ -34,7 +34,7 @@ const IncrementalPresenter = require('IncrementalPresenter'); const JSEventLoopWatchdog = require('JSEventLoopWatchdog'); const StaticContainer = require('StaticContainer.react'); -const performanceNow = require('performanceNow'); +const performanceNow = require('fbjs/lib/performanceNow'); InteractionManager.setDeadline(1000); JSEventLoopWatchdog.install({thresholdMS: 200}); diff --git a/Libraries/Interaction/JSEventLoopWatchdog.js b/Libraries/Interaction/JSEventLoopWatchdog.js index 16848be5a1..8d5dfadb97 100644 --- a/Libraries/Interaction/JSEventLoopWatchdog.js +++ b/Libraries/Interaction/JSEventLoopWatchdog.js @@ -11,7 +11,7 @@ */ 'use strict'; -const performanceNow = require('performanceNow'); +const performanceNow = require('fbjs/lib/performanceNow'); type Handler = { onIterate?: () => void,