Skip to content

Commit

Permalink
RN: Remove fbjs Dependency
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yungsters authored and facebook-github-bot committed Aug 28, 2020
1 parent 6729a3e commit 54e19a6
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 274 deletions.
4 changes: 0 additions & 4 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/warning')
.*/node_modules/warning/.*

; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js

Expand Down
4 changes: 0 additions & 4 deletions .flowconfig.android
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/warning')
.*/node_modules/warning/.*

; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js

Expand Down
2 changes: 0 additions & 2 deletions Libraries/Lists/FillRateHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const warning = require('fbjs/lib/warning');

export type FillRateInfo = Info;

class Info {
Expand Down
258 changes: 0 additions & 258 deletions flow/fbjs.js

This file was deleted.

1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ module.exports = {
'source-map',
'fastpath',
'denodeify',
'fbjs',
],
testEnvironment: 'node',
collectCoverageFrom: ['Libraries/**/*.js'],
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
"anser": "^1.4.9",
"base64-js": "^1.1.2",
"event-target-shim": "^5.0.1",
"fbjs": "^1.0.0",
"fbjs-scripts": "^1.1.0",
"hermes-engine": "~0.6.0",
"invariant": "^2.2.4",
Expand Down
4 changes: 0 additions & 4 deletions template/_flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
; Ignore polyfills
node_modules/react-native/Libraries/polyfills/.*

; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/warning')
node_modules/warning/.*

; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js

Expand Down

0 comments on commit 54e19a6

Please sign in to comment.