[add] ART export

Improve API compatibility with React Native by exporting 'react-art' as
'ART'.

Fix #602
This commit is contained in:
Nicolas Gallagher
2017-12-18 17:16:09 +00:00
parent 5f68542529
commit 321051b723
5 changed files with 22 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ const getDistLocation = importName => {
// components
case 'ActivityIndicator':
case 'ART':
case 'Button':
case 'FlatList':
case 'Image':

View File

@@ -71,6 +71,7 @@
"inline-style-prefixer": "^3.0.8",
"normalize-css-color": "^1.0.2",
"prop-types": "^15.6.0",
"react-art": "^16.2.0",
"react-timer-mixin": "^0.13.3"
},
"devDependencies": {

View File

@@ -0,0 +1,2 @@
import ART from 'react-art';
export default ART;

View File

@@ -28,6 +28,7 @@ import Vibration from './apis/Vibration';
// components
import ActivityIndicator from './components/ActivityIndicator';
import ART from './components/ART';
import Button from './components/Button';
import FlatList from './components/FlatList';
import Image from './components/Image';
@@ -92,6 +93,7 @@ export {
Vibration,
// components
ActivityIndicator,
ART,
Button,
FlatList,
Image,
@@ -159,6 +161,7 @@ const ReactNative = {
// components
ActivityIndicator,
ART,
Button,
FlatList,
Image,

View File

@@ -290,6 +290,10 @@ arrify@^1.0.0, arrify@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
art@^0.10.1:
version "0.10.1"
resolved "https://registry.yarnpkg.com/art/-/art-0.10.1.tgz#38541883e399225c5e193ff246e8f157cf7b2146"
asap@~2.0.3:
version "2.0.5"
resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.5.tgz#522765b50c3510490e52d7dcfe085ef9ba96958f"
@@ -4471,6 +4475,17 @@ rc@^1.1.7:
minimist "^1.2.0"
strip-json-comments "~2.0.1"
react-art@^16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/react-art/-/react-art-16.2.0.tgz#3b6914a6c9da64f83910896fa8cdae6ddf2aa589"
dependencies:
art "^0.10.1"
create-react-class "^15.6.2"
fbjs "^0.8.16"
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.0"
react-deep-force-update@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-1.0.1.tgz#f911b5be1d2a6fe387507dd6e9a767aa2924b4c7"