Skip to content

Commit c304706

Browse files
authored
fix: RN 0.79.x fix (#102)
* fix: RN 0.79.x missing component config metro error * fix: use "react-native" instead of "source" * fix: android type mismatch build error
1 parent 3b3e86a commit c304706

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

android/src/main/java/com/sourcetoad/reactnativesketchcanvas/RNTSketchCanvasManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RNTSketchCanvasViewManager :
3434

3535
override fun receiveCommand(
3636
root: RNTSketchCanvasView,
37-
commandId: String?,
37+
commandId: String,
3838
args: ReadableArray?
3939
) {
4040
if (root.getSketchCanvas().isCanvasReady()) {

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@
77
"version": "2.1.2",
88
"description": "react-native-sketch-canvas allows you to draw / sketch on both iOS and Android devices and sync the drawing data between users. Of course you can save as image.",
99
"author": "Terry Lin",
10-
"source": "./src/index.tsx",
10+
"react-native": "./src/index.tsx",
1111
"main": "./lib/commonjs/index.js",
1212
"module": "./lib/module/index.js",
1313
"types": "./lib/typescript/module/index.d.ts",
1414
"exports": {
1515
"./package.json": "./package.json",
1616
".": {
1717
"import": {
18+
"react-native": "./src/index.tsx",
1819
"types": "./lib/typescript/module/index.d.ts",
1920
"default": "./lib/module/index.js"
2021
},
2122
"require": {
23+
"react-native": "./src/index.tsx",
2224
"types": "./lib/typescript/commonjs/index.d.ts",
2325
"default": "./lib/commonjs/index.js"
2426
}

0 commit comments

Comments
 (0)