From dbfd04614596f53919dd017472904ecb84dfbd04 Mon Sep 17 00:00:00 2001 From: leeight Date: Sun, 16 Oct 2016 02:12:20 -0700 Subject: [PATCH] Change require('invariant') to require('fbjs/lib/invariant') Summary: FIX #10400 Closes https://github.com/facebook/react-native/pull/10409 Differential Revision: D4027850 fbshipit-source-id: c69e2ce892d119847902db3d6689ec237df35332 --- Examples/UIExplorer/js/CameraRollExample.js | 2 +- Libraries/Components/Button.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/UIExplorer/js/CameraRollExample.js b/Examples/UIExplorer/js/CameraRollExample.js index 9f425017f..898a3bf17 100644 --- a/Examples/UIExplorer/js/CameraRollExample.js +++ b/Examples/UIExplorer/js/CameraRollExample.js @@ -35,7 +35,7 @@ const { TouchableOpacity } = ReactNative; -const invariant = require('invariant'); +const invariant = require('fbjs/lib/invariant'); const CameraRollView = require('./CameraRollView'); diff --git a/Libraries/Components/Button.js b/Libraries/Components/Button.js index 9616f63df..6b19c88a0 100644 --- a/Libraries/Components/Button.js +++ b/Libraries/Components/Button.js @@ -20,7 +20,7 @@ const TouchableNativeFeedback = require('TouchableNativeFeedback'); const TouchableOpacity = require('TouchableOpacity'); const View = require('View'); -const invariant = require('invariant'); +const invariant = require('fbjs/lib/invariant'); /** * A basic button component that should render nicely on any platform. Supports