From db3486662e1c58391c0021f4caef5e68aec24c64 Mon Sep 17 00:00:00 2001 From: "Neuclair.Junior" Date: Mon, 26 Oct 2020 17:22:04 -0300 Subject: [PATCH 1/3] chnage ART import from react-native-community --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ba3b5bd..02e364f 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ import React, { Component } from "react"; -import { ART, Text, View, ActivityIndicator, StyleSheet } from "react-native"; +import { Text, View, ActivityIndicator, StyleSheet } from "react-native"; -const { Group, Shape, Surface } = ART; +const { Group, Shape, Surface } = "@react-native-community/art"; import createPDF417 from "./lib/pdf417-min"; export default class RNPDF417 extends Component { From 081ca3cfe24347f307a22e5ec39b3adcd7ffd8cd Mon Sep 17 00:00:00 2001 From: Neuclair Junior Date: Mon, 26 Oct 2020 17:46:42 -0300 Subject: [PATCH 2/3] add dependencies --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 35179d4..beee004 100644 --- a/package.json +++ b/package.json @@ -17,5 +17,8 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", - "license": "MIT" -} \ No newline at end of file + "license": "MIT", + "dependencies": { + "@react-native-community/art": "^1.2.0" + } +} From ece083ef4b80d2ae344afe867a4ed433e77af700 Mon Sep 17 00:00:00 2001 From: Neuclair Junior Date: Mon, 26 Oct 2020 17:55:51 -0300 Subject: [PATCH 3/3] change ART import from react-native-community --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 02e364f..e2fe4ee 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ import React, { Component } from "react"; import { Text, View, ActivityIndicator, StyleSheet } from "react-native"; -const { Group, Shape, Surface } = "@react-native-community/art"; +import { Group, Shape, Surface } from "@react-native-community/art"; import createPDF417 from "./lib/pdf417-min"; export default class RNPDF417 extends Component {