Skip to content

Commit

Permalink
Don't use local alias in react-native-implementation
Browse files Browse the repository at this point in the history
Summary: Nuclide's export detection for modules doesn't resolve local aliases. Lets just export the object directly.

Reviewed By: mostafaeweda

Differential Revision: D10443054

fbshipit-source-id: 880aa1eadff554903eb765d7104ecf3c3b72cbce
  • Loading branch information
elicwhite authored and facebook-github-bot committed Oct 18, 2018
1 parent d6c8f18 commit c95fdb0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Libraries/react-native/react-native-implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const invariant = require('fbjs/lib/invariant');
let showedListViewDeprecation = false;

// Export React, plus some native additions.
const ReactNative = {
module.exports = {
// Components
get AccessibilityInfo() {
return require('AccessibilityInfo');
Expand Down Expand Up @@ -340,5 +340,3 @@ const ReactNative = {
);
},
};

module.exports = ReactNative;

0 comments on commit c95fdb0

Please sign in to comment.