Skip to content

Commit

Permalink
Removed Fabric-specific feature flag files and updated Rollup to use …
Browse files Browse the repository at this point in the history
…the (non-Fabric) React Native flag files. (facebook#14437)
  • Loading branch information
bvaughn authored Dec 14, 2018
1 parent 2743fb7 commit 535804f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let FabricUIManager;
let StrictMode;

jest.mock('shared/ReactFeatureFlags', () =>
require('shared/forks/ReactFeatureFlags.native-fabric-oss'),
require('shared/forks/ReactFeatureFlags.native-oss'),
);

describe('ReactFabric', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('ReactFabric', () => {
ReactNative = require('react-native-renderer');
jest.resetModules();
jest.mock('shared/ReactFeatureFlags', () =>
require('shared/forks/ReactFeatureFlags.native-fabric-oss'),
require('shared/forks/ReactFeatureFlags.native-oss'),
);

React = require('react');
Expand Down
38 changes: 0 additions & 38 deletions packages/shared/forks/ReactFeatureFlags.native-fabric-fb.js

This file was deleted.

38 changes: 0 additions & 38 deletions packages/shared/forks/ReactFeatureFlags.native-fabric-oss.js

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/rollup/forks.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ const forks = Object.freeze({
case RN_FB_DEV:
case RN_FB_PROD:
case RN_FB_PROFILING:
return 'shared/forks/ReactFeatureFlags.native-fabric-fb.js';
return 'shared/forks/ReactFeatureFlags.native-fb.js';
case RN_OSS_DEV:
case RN_OSS_PROD:
case RN_OSS_PROFILING:
return 'shared/forks/ReactFeatureFlags.native-fabric-oss.js';
return 'shared/forks/ReactFeatureFlags.native-oss.js';
default:
throw Error(
`Unexpected entry (${entry}) and bundleType (${bundleType})`
Expand Down

0 comments on commit 535804f

Please sign in to comment.