-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[react-x] Export all components from the main react-x object (#59)
* Remove the react-x-components package and move exports to react-x * Remove the Components export from react-x tests
- Loading branch information
1 parent
6fa19c3
commit 5da4352
Showing
9 changed files
with
46 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
packages/react-x-components/src/__tests__/Components.spec.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
/* eslint-disable brace-style */ | ||
module.exports = { | ||
// APIs | ||
get Animated() { return require('react-x-primitives').Animated; }, | ||
get Clipboard() { return require('react-x-clipboard').default; }, | ||
get Components() { return require('react-x-components'); }, | ||
get Keychain() { return require('react-x-keychain').default; }, | ||
get Styled() { return require('react-x-styled').default; }, | ||
get StyleSheet() { return require('react-x-primitives').StyleSheet; }, | ||
|
||
// Components | ||
get Image() { return require('react-x-primitives').Image; }, | ||
get Render() { return require('react-x-render').default; }, | ||
get SVG() { return require('react-x-svg').default; }, | ||
get Switch() { return require('react-x-switch').default; }, | ||
get Text() { return require('react-x-primitives').Text; }, | ||
get View() { return require('react-x-primitives').View; }, | ||
}; |