Skip to content

Commit 54e19a6

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN: Remove fbjs Dependency
Summary: Removes `fbjs` dependency from `react-native` because it is no longer referenced. Changelog: [General][Changed] - Removed `fbjs` dependency from `react-native`. Reviewed By: cpojer Differential Revision: D23358201 fbshipit-source-id: 1945590d2e7ea853434c716a151fc1058718d471
1 parent 6729a3e commit 54e19a6

File tree

7 files changed

+0
-274
lines changed

7 files changed

+0
-274
lines changed

.flowconfig

-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
; Ignore "BUCK" generated dirs
1212
<PROJECT_ROOT>/\.buckd/
1313

14-
; These should not be required directly
15-
; require from fbjs/lib instead: require('fbjs/lib/warning')
16-
.*/node_modules/warning/.*
17-
1814
; Flow doesn't support platforms
1915
.*/Libraries/Utilities/LoadingView.js
2016

.flowconfig.android

-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
; Ignore "BUCK" generated dirs
1212
<PROJECT_ROOT>/\.buckd/
1313

14-
; These should not be required directly
15-
; require from fbjs/lib instead: require('fbjs/lib/warning')
16-
.*/node_modules/warning/.*
17-
1814
; Flow doesn't support platforms
1915
.*/Libraries/Utilities/LoadingView.js
2016

Libraries/Lists/FillRateHelper.js

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
'use strict';
1212

13-
const warning = require('fbjs/lib/warning');
14-
1513
export type FillRateInfo = Info;
1614

1715
class Info {

flow/fbjs.js

-258
This file was deleted.

jest.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ module.exports = {
3636
'source-map',
3737
'fastpath',
3838
'denodeify',
39-
'fbjs',
4039
],
4140
testEnvironment: 'node',
4241
collectCoverageFrom: ['Libraries/**/*.js'],

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
"anser": "^1.4.9",
9696
"base64-js": "^1.1.2",
9797
"event-target-shim": "^5.0.1",
98-
"fbjs": "^1.0.0",
9998
"fbjs-scripts": "^1.1.0",
10099
"hermes-engine": "~0.6.0",
101100
"invariant": "^2.2.4",

template/_flowconfig

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
; Ignore polyfills
99
node_modules/react-native/Libraries/polyfills/.*
1010

11-
; These should not be required directly
12-
; require from fbjs/lib instead: require('fbjs/lib/warning')
13-
node_modules/warning/.*
14-
1511
; Flow doesn't support platforms
1612
.*/Libraries/Utilities/LoadingView.js
1713

0 commit comments

Comments
 (0)