From 5f87ffe337c24126081b0902745f8e2bdde1a4a1 Mon Sep 17 00:00:00 2001 From: Igor Borges Date: Mon, 26 Jun 2017 18:09:47 -0300 Subject: [PATCH 1/2] move react-native to devDependencies --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8e85deb72..d2f60a41f 100644 --- a/package.json +++ b/package.json @@ -28,13 +28,13 @@ }, "dependencies": { "color": "^0.11.1", - "lodash": "^4.16.6", - "react-native": "^0.45.0" + "lodash": "^4.16.6" }, "devDependencies": { "babel-eslint": "^6.1.2", "eslint": "^2.13.1", - "eslint-plugin-react": "^4.3.0" + "eslint-plugin-react": "^4.3.0", + "react-native": "0.46.0-rc.2" }, "nativePackage": true } From 2e5ea29e68d6c1ce55d490a2a1c6f138fe771031 Mon Sep 17 00:00:00 2001 From: Igor Borges Date: Mon, 26 Jun 2017 18:11:32 -0300 Subject: [PATCH 2/2] move createReactNativeComponentClass import --- elements/Circle.js | 2 +- elements/ClipPath.js | 2 +- elements/Defs.js | 2 +- elements/Ellipse.js | 2 +- elements/G.js | 2 +- elements/Image.js | 2 +- elements/Line.js | 2 +- elements/LinearGradient.js | 2 +- elements/Path.js | 2 +- elements/RadialGradient.js | 2 +- elements/Rect.js | 2 +- elements/Symbol.js | 2 +- elements/TSpan.js | 2 +- elements/Text.js | 2 +- elements/TextPath.js | 2 +- elements/Use.js | 2 +- lib/extract/extractViewBox.js | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/elements/Circle.js b/elements/Circle.js index 2a5678999..a590902c7 100644 --- a/elements/Circle.js +++ b/elements/Circle.js @@ -1,5 +1,5 @@ import React from 'react'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import Shape from './Shape'; import {CircleAttributes} from '../lib/attributes'; import {pathProps, numberProp} from '../lib/props'; diff --git a/elements/ClipPath.js b/elements/ClipPath.js index afde0fc57..df5b8453a 100644 --- a/elements/ClipPath.js +++ b/elements/ClipPath.js @@ -1,6 +1,6 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import {ClipPathAttributes} from '../lib/attributes'; export default class extends Component{ diff --git a/elements/Defs.js b/elements/Defs.js index 8c7091cc0..c68afe599 100644 --- a/elements/Defs.js +++ b/elements/Defs.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; export default class extends Component { static displayName = 'Defs'; diff --git a/elements/Ellipse.js b/elements/Ellipse.js index cb7f0548b..07edd1beb 100644 --- a/elements/Ellipse.js +++ b/elements/Ellipse.js @@ -1,5 +1,5 @@ import React from 'react'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import Shape from './Shape'; import {pathProps, numberProp} from '../lib/props'; import {EllipseAttributes} from '../lib/attributes'; diff --git a/elements/G.js b/elements/G.js index 300309d36..fb5980c6f 100644 --- a/elements/G.js +++ b/elements/G.js @@ -1,5 +1,5 @@ import React from 'react'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import Shape from './Shape'; import {pathProps} from '../lib/props'; import {GroupAttributes} from '../lib/attributes'; diff --git a/elements/Image.js b/elements/Image.js index e77e7a71d..4248ed0e2 100644 --- a/elements/Image.js +++ b/elements/Image.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Image } from 'react-native'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import {ImageAttributes} from '../lib/attributes'; import {numberProp, touchableProps, responderProps} from '../lib/props'; import Shape from './Shape'; diff --git a/elements/Line.js b/elements/Line.js index 0b2c8c1aa..380a0b670 100644 --- a/elements/Line.js +++ b/elements/Line.js @@ -1,5 +1,5 @@ import React from 'react'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import {LineAttributes} from '../lib/attributes'; import Shape from './Shape'; import {pathProps, numberProp} from '../lib/props'; diff --git a/elements/LinearGradient.js b/elements/LinearGradient.js index 9de033890..828eb9b8f 100644 --- a/elements/LinearGradient.js +++ b/elements/LinearGradient.js @@ -2,7 +2,7 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {numberProp} from '../lib/props'; import extractGradient from '../lib/extract/extractGradient'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import {LinearGradientAttributes} from '../lib/attributes'; export default class extends Component{ diff --git a/elements/Path.js b/elements/Path.js index b883f17fd..b94e5a861 100644 --- a/elements/Path.js +++ b/elements/Path.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import {PathAttributes} from '../lib/attributes'; import Shape from './Shape'; import {pathProps} from '../lib/props'; diff --git a/elements/RadialGradient.js b/elements/RadialGradient.js index a143b1d97..20d47d509 100644 --- a/elements/RadialGradient.js +++ b/elements/RadialGradient.js @@ -2,7 +2,7 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {numberProp} from '../lib/props'; import extractGradient from '../lib/extract/extractGradient'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import {RadialGradientAttributes} from '../lib/attributes'; export default class extends Component{ diff --git a/elements/Rect.js b/elements/Rect.js index ab0bc171d..b9bed5752 100644 --- a/elements/Rect.js +++ b/elements/Rect.js @@ -1,6 +1,6 @@ import React from 'react'; import './Path'; // must import Path first, don`t know why. without this will throw an `Super expression must either be null or a function, not undefined` -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import {pathProps, numberProp} from '../lib/props'; import {RectAttributes} from '../lib/attributes'; import extractProps from '../lib/extract/extractProps'; diff --git a/elements/Symbol.js b/elements/Symbol.js index 30b5e86a7..dd60050d9 100644 --- a/elements/Symbol.js +++ b/elements/Symbol.js @@ -1,7 +1,7 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import extractViewBox from '../lib/extract/extractViewBox'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import {SymbolAttributes} from '../lib/attributes'; export default class extends Component{ diff --git a/elements/TSpan.js b/elements/TSpan.js index 190316787..a4447bbdc 100644 --- a/elements/TSpan.js +++ b/elements/TSpan.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import extractText from '../lib/extract/extractText'; import {numberProp, pathProps, fontProps} from '../lib/props'; import {TSpanAttibutes} from '../lib/attributes'; diff --git a/elements/Text.js b/elements/Text.js index b083dce33..e7abd6b94 100644 --- a/elements/Text.js +++ b/elements/Text.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import extractText from '../lib/extract/extractText'; import {numberProp, pathProps, fontProps} from '../lib/props'; import {TextAttributes} from '../lib/attributes'; diff --git a/elements/TextPath.js b/elements/TextPath.js index 9406cde41..e80757296 100644 --- a/elements/TextPath.js +++ b/elements/TextPath.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import {TextPathAttributes} from '../lib/attributes'; import extractText from '../lib/extract/extractText'; import Shape from './Shape'; diff --git a/elements/Use.js b/elements/Use.js index a5131c9c6..4a5708f17 100644 --- a/elements/Use.js +++ b/elements/Use.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import extractProps from '../lib/extract/extractProps'; import {pathProps, numberProp} from '../lib/props'; import {UseAttributes} from '../lib/attributes'; diff --git a/lib/extract/extractViewBox.js b/lib/extract/extractViewBox.js index 06e4cbb1e..caa6cccf7 100644 --- a/lib/extract/extractViewBox.js +++ b/lib/extract/extractViewBox.js @@ -1,7 +1,7 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; -import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; +import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import {ViewBoxAttributes} from '../attributes'; const meetOrSliceTypes = {