mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-08 04:31:19 +00:00
[add] ART export
Improve API compatibility with React Native by exporting 'react-art' as 'ART'. Fix #602
This commit is contained in:
@@ -27,6 +27,7 @@ const getDistLocation = importName => {
|
|||||||
|
|
||||||
// components
|
// components
|
||||||
case 'ActivityIndicator':
|
case 'ActivityIndicator':
|
||||||
|
case 'ART':
|
||||||
case 'Button':
|
case 'Button':
|
||||||
case 'FlatList':
|
case 'FlatList':
|
||||||
case 'Image':
|
case 'Image':
|
||||||
|
|||||||
@@ -71,6 +71,7 @@
|
|||||||
"inline-style-prefixer": "^3.0.8",
|
"inline-style-prefixer": "^3.0.8",
|
||||||
"normalize-css-color": "^1.0.2",
|
"normalize-css-color": "^1.0.2",
|
||||||
"prop-types": "^15.6.0",
|
"prop-types": "^15.6.0",
|
||||||
|
"react-art": "^16.2.0",
|
||||||
"react-timer-mixin": "^0.13.3"
|
"react-timer-mixin": "^0.13.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
import ART from 'react-art';
|
||||||
|
export default ART;
|
||||||
@@ -28,6 +28,7 @@ import Vibration from './apis/Vibration';
|
|||||||
|
|
||||||
// components
|
// components
|
||||||
import ActivityIndicator from './components/ActivityIndicator';
|
import ActivityIndicator from './components/ActivityIndicator';
|
||||||
|
import ART from './components/ART';
|
||||||
import Button from './components/Button';
|
import Button from './components/Button';
|
||||||
import FlatList from './components/FlatList';
|
import FlatList from './components/FlatList';
|
||||||
import Image from './components/Image';
|
import Image from './components/Image';
|
||||||
@@ -92,6 +93,7 @@ export {
|
|||||||
Vibration,
|
Vibration,
|
||||||
// components
|
// components
|
||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
|
ART,
|
||||||
Button,
|
Button,
|
||||||
FlatList,
|
FlatList,
|
||||||
Image,
|
Image,
|
||||||
@@ -159,6 +161,7 @@ const ReactNative = {
|
|||||||
|
|
||||||
// components
|
// components
|
||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
|
ART,
|
||||||
Button,
|
Button,
|
||||||
FlatList,
|
FlatList,
|
||||||
Image,
|
Image,
|
||||||
|
|||||||
@@ -290,6 +290,10 @@ arrify@^1.0.0, arrify@^1.0.1:
|
|||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
|
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:
|
asap@~2.0.3:
|
||||||
version "2.0.5"
|
version "2.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.5.tgz#522765b50c3510490e52d7dcfe085ef9ba96958f"
|
resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.5.tgz#522765b50c3510490e52d7dcfe085ef9ba96958f"
|
||||||
@@ -4471,6 +4475,17 @@ rc@^1.1.7:
|
|||||||
minimist "^1.2.0"
|
minimist "^1.2.0"
|
||||||
strip-json-comments "~2.0.1"
|
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:
|
react-deep-force-update@^1.0.0:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-1.0.1.tgz#f911b5be1d2a6fe387507dd6e9a767aa2924b4c7"
|
resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-1.0.1.tgz#f911b5be1d2a6fe387507dd6e9a767aa2924b4c7"
|
||||||
|
|||||||
Reference in New Issue
Block a user