diff --git a/index.js b/index.js index 6c39e95..2a2cc16 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,8 @@ 'use strict'; -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; + import { StyleSheet, Dimensions, diff --git a/package.json b/package.json index 443a59d..89d210a 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,9 @@ "bugs": { "url": "https://github.com/moaazsidat/react-native-qrcode-scanner/issues" }, + "dependencies": { + "prop-types": "^15.5.10" + }, "peerDependencies": { "react-native-camera": "^0.10.0" },