@react-native-kakao/share 2.4.2 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -86,12 +86,15 @@ class RNCKakaoShareModule internal constructor(
|
|
|
86
86
|
promise,
|
|
87
87
|
)
|
|
88
88
|
}
|
|
89
|
+
|
|
89
90
|
"send-me" -> {
|
|
90
91
|
runSendToMe(templateType, templateId, null, templateArgs, promise)
|
|
91
92
|
}
|
|
93
|
+
|
|
92
94
|
"send-friend" -> {
|
|
93
95
|
runSendToFriends(templateType, receiverUuids, templateId, null, templateArgs, promise)
|
|
94
96
|
}
|
|
97
|
+
|
|
95
98
|
else -> {
|
|
96
99
|
promise.rejectWith(RNCKakaoUnknownException("Unknown sendType: $sendType"))
|
|
97
100
|
}
|
|
@@ -117,12 +120,15 @@ class RNCKakaoShareModule internal constructor(
|
|
|
117
120
|
promise,
|
|
118
121
|
)
|
|
119
122
|
}
|
|
123
|
+
|
|
120
124
|
"send-me" -> {
|
|
121
125
|
runSendToMe(templateType, null, template, null, promise)
|
|
122
126
|
}
|
|
127
|
+
|
|
123
128
|
"send-friend" -> {
|
|
124
129
|
runSendToFriends(templateType, receiverUuids, null, template, null, promise)
|
|
125
130
|
}
|
|
131
|
+
|
|
126
132
|
else -> {
|
|
127
133
|
promise.rejectWith(RNCKakaoUnknownException("Unknown sendType: $sendType"))
|
|
128
134
|
}
|
|
@@ -249,7 +249,11 @@ import SafariServices
|
|
|
249
249
|
} else if var defaultTemplate {
|
|
250
250
|
do {
|
|
251
251
|
let templatable = try generateTemplatable(templateType, &defaultTemplate)
|
|
252
|
-
ShareApi.shared.shareDefault(
|
|
252
|
+
ShareApi.shared.shareDefault(
|
|
253
|
+
templatable: templatable,
|
|
254
|
+
serverCallbackArgs: serverCallbackArgs,
|
|
255
|
+
completion: shareCompletion
|
|
256
|
+
)
|
|
253
257
|
} catch {
|
|
254
258
|
RNCKakaoUtil.reject(reject, error)
|
|
255
259
|
}
|
|
@@ -286,7 +290,10 @@ import SafariServices
|
|
|
286
290
|
do {
|
|
287
291
|
let templatable = try generateTemplatable(templateType, &defaultTemplate)
|
|
288
292
|
|
|
289
|
-
if let url = ShareApi.shared.makeDefaultUrl(
|
|
293
|
+
if let url = ShareApi.shared.makeDefaultUrl(
|
|
294
|
+
templatable: templatable,
|
|
295
|
+
serverCallbackArgs: serverCallbackArgs
|
|
296
|
+
) {
|
|
290
297
|
let safariViewController = SFSafariViewController(url: url)
|
|
291
298
|
safariViewController.modalTransitionStyle = .crossDissolve
|
|
292
299
|
safariViewController.modalPresentationStyle = .overCurrentContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-kakao/share",
|
|
3
3
|
"description": "React Native Kakao Share SDK",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.4",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
7
7
|
"types": "lib/typescript/src/index.d.ts",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@react-native-kakao/core": "2.4.
|
|
64
|
+
"@react-native-kakao/core": "2.4.4",
|
|
65
65
|
"@types/jest": "^29.5.5",
|
|
66
66
|
"@types/react": "^18.2.44",
|
|
67
67
|
"del-cli": "^5.1.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"typescript": "5.1.6"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@react-native-kakao/core": "2.4.
|
|
75
|
+
"@react-native-kakao/core": "2.4.4",
|
|
76
76
|
"react": "*",
|
|
77
77
|
"react-native": "*"
|
|
78
78
|
},
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"javaPackageName": "net.mjstudio.rnkakao.share"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "6dcff699309a4bd06a3dc094d5a298a3f8b1ee2f",
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"@mj-studio/js-util": "1.1.14"
|
|
114
114
|
}
|