From 797c1576cef0d74681d7e6ab7c91c68b05036472 Mon Sep 17 00:00:00 2001 From: fencer <982039620@qq.com> Date: Mon, 26 Sep 2022 13:42:37 +0800 Subject: [PATCH 1/3] Update build.gradle --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } From 474b9414a69c66e81d455ff454c85b3a08b68b8d Mon Sep 17 00:00:00 2001 From: fencer <982039620@qq.com> Date: Mon, 26 Sep 2022 13:43:49 +0800 Subject: [PATCH 2/3] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} From de1b66bf5e954643653a81ddf0a2eeec7593fd62 Mon Sep 17 00:00:00 2001 From: fencer <982039620@qq.com> Date: Mon, 26 Sep 2022 13:44:28 +0800 Subject: [PATCH 3/3] Update SketchCanvas.js --- src/SketchCanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {