mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-06 17:52:57 +08:00
JS: Switch to nullthrows Package [1/4]
Summary: Switches to the `nullthrows` package instead of using `fbjs/lib/nullthrows`. The version of `nullthrows` in `fbjs` is outdated and already missing features that exist in the standalone `nullthrows` package. Also, this mitigates the inevitable collision between `nullthrows` (as a Haste module) and `nullthrows` (as a `node_modules` dependency). Reviewed By: zertosh Differential Revision: D9733178 fbshipit-source-id: 1b589d48c1ed57cebf2088b796ad72e212534c0a
This commit is contained in:
committed by
Facebook Github Bot
parent
1830f9baae
commit
5023b105e4
@@ -15,7 +15,7 @@ const React = require('React');
|
||||
const {NativeComponent} = require('ReactNative');
|
||||
|
||||
const requireNativeComponent = require('requireNativeComponent');
|
||||
const nullthrows = require('fbjs/lib/nullthrows');
|
||||
const nullthrows = require('nullthrows');
|
||||
|
||||
import type {ColorValue} from 'StyleSheetTypes';
|
||||
import type {ViewProps} from 'ViewPropTypes';
|
||||
|
||||
Reference in New Issue
Block a user