diff --git a/android/build.gradle b/android/build.gradle index 31e44f28..43b4eb2f 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -28,5 +28,5 @@ android { } dependencies { - provided "com.facebook.react:react-native:+" + implementation 'com.facebook.react:react-native:+' // From node_modules } diff --git a/index.js b/index.js index 79358429..207a54fd 100644 --- a/index.js +++ b/index.js @@ -5,10 +5,10 @@ import ReactNative, { Text, TouchableOpacity, FlatList, - ViewPropTypes, } from 'react-native' import SketchCanvas from './src/SketchCanvas' import { requestPermissions } from './src/handlePermissions'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types' export default class RNSketchCanvas extends React.Component { static propTypes = { @@ -282,4 +282,4 @@ RNSketchCanvas.CACHES = SketchCanvas.CACHES; export { SketchCanvas -} \ No newline at end of file +} diff --git a/src/SketchCanvas.js b/src/SketchCanvas.js index 8f4fe48f..add9fc39 100644 --- a/src/SketchCanvas.js +++ b/src/SketchCanvas.js @@ -9,10 +9,10 @@ import ReactNative, { PanResponder, PixelRatio, Platform, - ViewPropTypes, processColor } from 'react-native' import { requestPermissions } from './handlePermissions'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types' const RNSketchCanvas = requireNativeComponent('RNSketchCanvas', SketchCanvas, { nativeOnly: {