diff --git a/index.js b/index.js index ba3b5bd..e2fe4ee 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; +import { Group, Shape, Surface } from "@react-native-community/art"; import createPDF417 from "./lib/pdf417-min"; export default class RNPDF417 extends Component { 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" + } +}