@react-native-kakao/share 0.6.0 → 0.7.1
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.
- package/lib/commonjs/index.js +22 -25
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +17 -25
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.tsx +29 -25
package/lib/commonjs/index.js
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
// import { NativeModules, Platform } from 'react-native';
|
|
2
|
-
//
|
|
3
|
-
// const LINKING_ERROR =
|
|
4
|
-
// `The package '@react-native-kakao/share' doesn't seem to be linked. Make sure: \n\n` +
|
|
5
|
-
// Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
6
|
-
// '- You rebuilt the app after installing the package\n' +
|
|
7
|
-
// '- You are not using Expo Go\n';
|
|
8
|
-
//
|
|
9
|
-
// // @ts-expect-error
|
|
10
|
-
// const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
11
|
-
//
|
|
12
|
-
// const Module = isTurboModuleEnabled
|
|
13
|
-
// ? require('./spec/NativeKakaoShare').default
|
|
14
|
-
// : NativeModules.KakaoShare;
|
|
15
|
-
//
|
|
16
|
-
// const Native = Module
|
|
17
|
-
// ? Module
|
|
18
|
-
// : new Proxy(
|
|
19
|
-
// {},
|
|
20
|
-
// {
|
|
21
|
-
// get() {
|
|
22
|
-
// throw new Error(LINKING_ERROR);
|
|
23
|
-
// },
|
|
24
|
-
// }
|
|
25
|
-
// );
|
|
26
1
|
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.noob = noob;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
const LINKING_ERROR = "The package '@react-native-kakao/share' doesn't seem to be linked. Make sure: \n\n" + _reactNative.Platform.select({
|
|
9
|
+
ios: "- You have run 'pod install'\n",
|
|
10
|
+
default: ''
|
|
11
|
+
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
12
|
+
|
|
13
|
+
// @ts-expect-error
|
|
14
|
+
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
15
|
+
const Module = isTurboModuleEnabled ? require('./spec/NativeKakaoShare').default : _reactNative.NativeModules.RNCKakaoShare;
|
|
16
|
+
const Native = Module ? Module : new Proxy({}, {
|
|
17
|
+
get() {
|
|
18
|
+
throw new Error(LINKING_ERROR);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
function noob() {
|
|
22
|
+
console.log(Native);
|
|
23
|
+
}
|
|
27
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","Module","NativeModules","RNCKakaoShare","Native","Proxy","get","Error","noob","console","log"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,aAAa,GACjB,oFAAoF,GACpFC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,MAAM,GAAGH,oBAAoB,GAC/BN,OAAO,CAAC,yBAAyB,CAAC,CAACK,OAAO,GAC1CK,0BAAa,CAACC,aAAa;AAE/B,MAAMC,MAAM,GAAGH,MAAM,GACjBA,MAAM,GACN,IAAII,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACd,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEE,SAASe,IAAIA,CAAA,EAAG;EACrBC,OAAO,CAACC,GAAG,CAACN,MAAM,CAAC;AACrB","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
// : new Proxy(
|
|
19
|
-
// {},
|
|
20
|
-
// {
|
|
21
|
-
// get() {
|
|
22
|
-
// throw new Error(LINKING_ERROR);
|
|
23
|
-
// },
|
|
24
|
-
// }
|
|
25
|
-
// );
|
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
|
2
|
+
const LINKING_ERROR = "The package '@react-native-kakao/share' doesn't seem to be linked. Make sure: \n\n" + Platform.select({
|
|
3
|
+
ios: "- You have run 'pod install'\n",
|
|
4
|
+
default: ''
|
|
5
|
+
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
6
|
+
|
|
7
|
+
// @ts-expect-error
|
|
8
|
+
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
9
|
+
const Module = isTurboModuleEnabled ? require('./spec/NativeKakaoShare').default : NativeModules.RNCKakaoShare;
|
|
10
|
+
const Native = Module ? Module : new Proxy({}, {
|
|
11
|
+
get() {
|
|
12
|
+
throw new Error(LINKING_ERROR);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export function noob() {
|
|
16
|
+
console.log(Native);
|
|
17
|
+
}
|
|
26
18
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA;
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","Module","require","RNCKakaoShare","Native","Proxy","get","Error","noob","console","log"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,MAAMC,aAAa,GACjB,oFAAoF,GACpFD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,MAAM,GAAGH,oBAAoB,GAC/BI,OAAO,CAAC,yBAAyB,CAAC,CAACL,OAAO,GAC1CL,aAAa,CAACW,aAAa;AAE/B,MAAMC,MAAM,GAAGH,MAAM,GACjBA,MAAM,GACN,IAAII,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACb,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,OAAO,SAASc,IAAIA,CAAA,EAAG;EACrBC,OAAO,CAACC,GAAG,CAACN,MAAM,CAAC;AACrB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,IAAI,SAEnB"}
|
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": "0.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
7
7
|
"types": "lib/typescript/src/index.d.ts",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"javaPackageName": "net.mjstudio.rnkakao.share"
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "bbdcef0f45c18ff6084230e6b800251216c26401"
|
|
107
107
|
}
|
package/src/index.tsx
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
|
2
|
+
|
|
3
|
+
const LINKING_ERROR =
|
|
4
|
+
"The package '@react-native-kakao/share' doesn't seem to be linked. Make sure: \n\n" +
|
|
5
|
+
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
6
|
+
'- You rebuilt the app after installing the package\n' +
|
|
7
|
+
'- You are not using Expo Go\n';
|
|
8
|
+
|
|
9
|
+
// @ts-expect-error
|
|
10
|
+
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
11
|
+
|
|
12
|
+
const Module = isTurboModuleEnabled
|
|
13
|
+
? require('./spec/NativeKakaoShare').default
|
|
14
|
+
: NativeModules.RNCKakaoShare;
|
|
15
|
+
|
|
16
|
+
const Native = Module
|
|
17
|
+
? Module
|
|
18
|
+
: new Proxy(
|
|
19
|
+
{},
|
|
20
|
+
{
|
|
21
|
+
get() {
|
|
22
|
+
throw new Error(LINKING_ERROR);
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
export function noob() {
|
|
28
|
+
console.log(Native);
|
|
29
|
+
}
|