@norcy/react-native-toolkit 0.1.41 → 0.1.42

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.
Files changed (72) hide show
  1. package/.DS_Store +0 -0
  2. package/.circleci/config.yml +98 -0
  3. package/.editorconfig +15 -0
  4. package/.gitattributes +3 -0
  5. package/.gitignore +60 -0
  6. package/.prettierrc +8 -0
  7. package/.vscode/settings.json +9 -0
  8. package/.watchmanconfig +6 -0
  9. package/CONTRIBUTING.md +184 -0
  10. package/babel.config.js +3 -0
  11. package/ios/.DS_Store +0 -0
  12. package/locales/en-US.json +1 -0
  13. package/locales/zh-CN.json +1 -0
  14. package/package.json +1 -1
  15. package/src/.DS_Store +0 -0
  16. package/tsconfig.json +27 -0
  17. package/yarn.lock +11432 -0
  18. package/lib/typescript/babel.config.d.ts +0 -1
  19. package/lib/typescript/lib/commonjs/AppBadgeContext.d.ts +0 -8
  20. package/lib/typescript/lib/commonjs/AppleLoginUtil.d.ts +0 -27
  21. package/lib/typescript/lib/commonjs/ConfigDataModel.d.ts +0 -14
  22. package/lib/typescript/lib/commonjs/DevConfig.d.ts +0 -7
  23. package/lib/typescript/lib/commonjs/Frequence.d.ts +0 -6
  24. package/lib/typescript/lib/commonjs/LoginManager.d.ts +0 -15
  25. package/lib/typescript/lib/commonjs/MessageModel.d.ts +0 -10
  26. package/lib/typescript/lib/commonjs/Notification.d.ts +0 -8
  27. package/lib/typescript/lib/commonjs/PrefData.d.ts +0 -79
  28. package/lib/typescript/lib/commonjs/ReportUtil.d.ts +0 -16
  29. package/lib/typescript/lib/commonjs/SentryManager.d.ts +0 -5
  30. package/lib/typescript/lib/commonjs/SyncPrefData.d.ts +0 -5
  31. package/lib/typescript/lib/commonjs/Tool.d.ts +0 -26
  32. package/lib/typescript/lib/commonjs/VipAndroidManager.d.ts +0 -25
  33. package/lib/typescript/lib/commonjs/VipManager.d.ts +0 -25
  34. package/lib/typescript/lib/commonjs/WeChatLoginUtil.d.ts +0 -4
  35. package/lib/typescript/lib/commonjs/constant.d.ts +0 -3
  36. package/lib/typescript/lib/commonjs/index.d.ts +0 -3
  37. package/lib/typescript/lib/module/AppBadgeContext.d.ts +0 -14
  38. package/lib/typescript/lib/module/AppleLoginUtil.d.ts +0 -26
  39. package/lib/typescript/lib/module/ConfigDataModel.d.ts +0 -13
  40. package/lib/typescript/lib/module/DevConfig.d.ts +0 -6
  41. package/lib/typescript/lib/module/Frequence.d.ts +0 -5
  42. package/lib/typescript/lib/module/LoginManager.d.ts +0 -14
  43. package/lib/typescript/lib/module/MessageModel.d.ts +0 -9
  44. package/lib/typescript/lib/module/Notification.d.ts +0 -7
  45. package/lib/typescript/lib/module/PrefData.d.ts +0 -78
  46. package/lib/typescript/lib/module/ReportUtil.d.ts +0 -15
  47. package/lib/typescript/lib/module/SentryManager.d.ts +0 -4
  48. package/lib/typescript/lib/module/SyncPrefData.d.ts +0 -4
  49. package/lib/typescript/lib/module/Tool.d.ts +0 -25
  50. package/lib/typescript/lib/module/VipAndroidManager.d.ts +0 -24
  51. package/lib/typescript/lib/module/VipManager.d.ts +0 -24
  52. package/lib/typescript/lib/module/WeChatLoginUtil.d.ts +0 -3
  53. package/lib/typescript/lib/module/constant.d.ts +0 -2
  54. package/lib/typescript/lib/module/index.d.ts +0 -19
  55. /package/lib/typescript/{src/AppBadgeContext.d.ts → AppBadgeContext.d.ts} +0 -0
  56. /package/lib/typescript/{src/AppleLoginUtil.d.ts → AppleLoginUtil.d.ts} +0 -0
  57. /package/lib/typescript/{src/ConfigDataModel.d.ts → ConfigDataModel.d.ts} +0 -0
  58. /package/lib/typescript/{src/DevConfig.d.ts → DevConfig.d.ts} +0 -0
  59. /package/lib/typescript/{src/Frequence.d.ts → Frequence.d.ts} +0 -0
  60. /package/lib/typescript/{src/LoginManager.d.ts → LoginManager.d.ts} +0 -0
  61. /package/lib/typescript/{src/MessageModel.d.ts → MessageModel.d.ts} +0 -0
  62. /package/lib/typescript/{src/Notification.d.ts → Notification.d.ts} +0 -0
  63. /package/lib/typescript/{src/PrefData.d.ts → PrefData.d.ts} +0 -0
  64. /package/lib/typescript/{src/ReportUtil.d.ts → ReportUtil.d.ts} +0 -0
  65. /package/lib/typescript/{src/SentryManager.d.ts → SentryManager.d.ts} +0 -0
  66. /package/lib/typescript/{src/SyncPrefData.d.ts → SyncPrefData.d.ts} +0 -0
  67. /package/lib/typescript/{src/Tool.d.ts → Tool.d.ts} +0 -0
  68. /package/lib/typescript/{src/VipAndroidManager.d.ts → VipAndroidManager.d.ts} +0 -0
  69. /package/lib/typescript/{src/VipManager.d.ts → VipManager.d.ts} +0 -0
  70. /package/lib/typescript/{src/WeChatLoginUtil.d.ts → WeChatLoginUtil.d.ts} +0 -0
  71. /package/lib/typescript/{src/constant.d.ts → constant.d.ts} +0 -0
  72. /package/lib/typescript/{src/index.d.ts → index.d.ts} +0 -0
@@ -1 +0,0 @@
1
- export let presets: string[];
@@ -1,8 +0,0 @@
1
- export const __esModule: boolean;
2
- export const AppBadgeContext: any;
3
- export namespace AppBadgeHelper {
4
- function initBadge(context: any, badges: any): void;
5
- function _calculateValidBadge(context: any, allBadges: any, clearedBadges: any): void;
6
- function clearBadge(context: any, scene: any): void;
7
- function hasBadge(context: any, scene: any): any;
8
- }
@@ -1,27 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace AppleLoginUtil {
3
- function fetchAndUpdateCredentialState(user: any, callback: any): Promise<void>;
4
- function requestAppleUserForLogin(): Promise<{
5
- error: string;
6
- user?: undefined;
7
- email?: undefined;
8
- identityToken?: undefined;
9
- code?: undefined;
10
- } | {
11
- user: string;
12
- email: string | null;
13
- identityToken: string | null;
14
- error?: undefined;
15
- code?: undefined;
16
- } | {
17
- error: string;
18
- code: any;
19
- user?: undefined;
20
- email?: undefined;
21
- identityToken?: undefined;
22
- }>;
23
- function requestAppleUserForLogout(): Promise<{
24
- authorizationCode: string | null;
25
- }>;
26
- function requestDeleteAccount(): Promise<void>;
27
- }
@@ -1,14 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace ConfigDataModel {
3
- function init(defaultValues: any): void;
4
- function fetch(): void;
5
- function getVersionConfig(): {
6
- currentVersion: string;
7
- latestVersion: string;
8
- isDanger: boolean;
9
- hasNewVersion: boolean;
10
- };
11
- function get(key: any): any;
12
- function emitChange(): void;
13
- function addListenerOnce(callback: any): void;
14
- }
@@ -1,7 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace DevConfig {
3
- function setup(initConfigs: any): void;
4
- function hasValue(pref: any): boolean;
5
- function getValue(pref: any): any;
6
- function getConfig(pref: any): any;
7
- }
@@ -1,6 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace FrequenceManager {
3
- function canRun(config: any): boolean;
4
- function markFinishForCount(config: any): void;
5
- function markFinishForTime(config: any): void;
6
- }
@@ -1,15 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace LoginManager {
3
- function autoLogin(): Promise<void>;
4
- function login(type: any, ...args: any[]): Promise<void>;
5
- function logOut(callback: any): void;
6
- function isLogin(): boolean;
7
- function isVisitor(): boolean;
8
- function currentUser(): any;
9
- function batchUpdateUser(keys: any, values: any, callback: any): Promise<void>;
10
- function updateUser(key: any, value: any, callback: any): void;
11
- function deleteUser(callback: any): Promise<void>;
12
- function lastLoginType(): any;
13
- function isRegisterInThisDevice(): any;
14
- function fetchWeChatAvatar(callback: any): void;
15
- }
@@ -1,10 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace MessageModel {
3
- function fetch(): void;
4
- function getUnreadMessages(): any[];
5
- function getAllMessages(): any[];
6
- function markMessageRead(message: any): Promise<void>;
7
- function handleMessageAction(url: any, navigation: any): void;
8
- function emitChange(): void;
9
- function addListenerOnce(callback: any): void;
10
- }
@@ -1,8 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace Notification {
3
- function addListener(event: any, callback: any): any;
4
- function addListenerOnce(event: any, callback: any): void;
5
- function removeListener(callback: any): void;
6
- function removeAllListeners(event: any): void;
7
- function postNotification(event: any, args: any): void;
8
- }
@@ -1,79 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace BuildInPrefs {
3
- namespace LastLoginType {
4
- export let key: string;
5
- export let type: string;
6
- let _default: number;
7
- export { _default as default };
8
- }
9
- namespace DevVip {
10
- let key_1: string;
11
- export { key_1 as key };
12
- let type_1: string;
13
- export { type_1 as type };
14
- let _default_1: number;
15
- export { _default_1 as default };
16
- }
17
- namespace DevDanger {
18
- let key_2: string;
19
- export { key_2 as key };
20
- let type_2: string;
21
- export { type_2 as type };
22
- let _default_2: number;
23
- export { _default_2 as default };
24
- }
25
- namespace FrequenceConfig {
26
- let key_3: string;
27
- export { key_3 as key };
28
- let type_3: string;
29
- export { type_3 as type };
30
- let _default_3: {};
31
- export { _default_3 as default };
32
- }
33
- namespace Messages {
34
- let key_4: string;
35
- export { key_4 as key };
36
- let type_4: string;
37
- export { type_4 as type };
38
- let _default_4: never[];
39
- export { _default_4 as default };
40
- }
41
- namespace ClearBadge {
42
- let key_5: string;
43
- export { key_5 as key };
44
- let type_5: string;
45
- export { type_5 as type };
46
- let _default_5: never[];
47
- export { _default_5 as default };
48
- }
49
- namespace RegisterInThisDevice {
50
- let key_6: string;
51
- export { key_6 as key };
52
- let type_6: string;
53
- export { type_6 as type };
54
- let _default_6: boolean;
55
- export { _default_6 as default };
56
- }
57
- namespace LanguageMode {
58
- let key_7: string;
59
- export { key_7 as key };
60
- let type_7: string;
61
- export { type_7 as type };
62
- let _default_7: number;
63
- export { _default_7 as default };
64
- }
65
- namespace DisplayMode {
66
- let key_8: string;
67
- export { key_8 as key };
68
- let type_8: string;
69
- export { type_8 as type };
70
- let _default_8: number;
71
- export { _default_8 as default };
72
- }
73
- }
74
- export namespace PrefData {
75
- function load(initPrefs: any): Promise<void>;
76
- function getValue(pref: any): any;
77
- function setValue(pref: any, value: any): Promise<void>;
78
- function addListener(callback: any): void;
79
- }
@@ -1,16 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace ReportUtil {
3
- function init(): void;
4
- function report(eventId: any, params: any): void;
5
- function setCommonInfo(key: any, value: any): void;
6
- function getCommonInfo(): {
7
- appVer: string;
8
- platform: "ios" | "android" | "windows" | "macos" | "web";
9
- sysVer: string | number;
10
- model: string;
11
- brand: string;
12
- device: string;
13
- };
14
- function viewAppear(page: any): void;
15
- function viewDisappear(page: any): void;
16
- }
@@ -1,5 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace SentryManager {
3
- function init(): void;
4
- function setTag(key: any, value: any): void;
5
- }
@@ -1,5 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace SyncPrefData {
3
- function setPrefString(key: any, value: any): void;
4
- function getPrefString(key: any): any;
5
- }
@@ -1,26 +0,0 @@
1
- export const __esModule: boolean;
2
- export const ToolkitConfig: any;
3
- export namespace Tool {
4
- function sleep(delay: any): Promise<any>;
5
- function formatDate(date: any, fmt: any): any;
6
- function jsonify(target: any): any;
7
- function isChinese(value: any): boolean;
8
- function isRemoteURL(str: any): any;
9
- function get_url_extension(url: any): any;
10
- function generateObjectId(): string;
11
- function humanFileSize(bytes: any, ...args: any[]): string;
12
- function useForceUpdate(): () => void;
13
- function showToast(toast: any): void;
14
- function goAppStoreReview(): void;
15
- function goUpgrade(): void;
16
- function notifyMe(text: any): Promise<void>;
17
- function hasAndroidWritePermission(): Promise<boolean>;
18
- function savePicture(url: any, albumName: any): Promise<{
19
- errorCode: number;
20
- errMsg?: undefined;
21
- } | {
22
- errorCode: number;
23
- errMsg: string;
24
- }>;
25
- }
26
- export function initToolkitConfig(config: any): void;
@@ -1,25 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace VipAndroidManager {
3
- function queryOrder(orderId: any): Promise<{
4
- paid: any;
5
- e?: undefined;
6
- } | {
7
- paid: boolean;
8
- e: any;
9
- }>;
10
- function recover(): Promise<{
11
- errorCode: number;
12
- errorMsg?: undefined;
13
- } | {
14
- errorCode: number;
15
- errorMsg: string;
16
- }>;
17
- function getPackages(): any;
18
- function purchase(purchasePackage: any): Promise<{
19
- errorCode: number;
20
- errorMsg: any;
21
- } | {
22
- errorCode: number;
23
- errorMsg?: undefined;
24
- }>;
25
- }
@@ -1,25 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace VipManager {
3
- function init(): void;
4
- function purchase(purchasePackage: any): Promise<{
5
- errorCode: number;
6
- errorMsg: any;
7
- } | {
8
- errorCode: number;
9
- errorMsg?: undefined;
10
- }>;
11
- function recover(): Promise<{
12
- errorCode: number;
13
- errorMsg?: undefined;
14
- } | {
15
- errorCode: number;
16
- errorMsg: any;
17
- }>;
18
- function getPackages(): Promise<any>;
19
- function isVip(): any;
20
- function isForeverVip(): any;
21
- function vipEndTime(): any;
22
- function vipCountDay(): number;
23
- function isTrailVip(): boolean;
24
- function refreshVip(customerInfo: any): Promise<void>;
25
- }
@@ -1,4 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace WeChatLoginUtil {
3
- function doLogin(WeiXinId: any, WeiXinSecret: any, callback: any): void;
4
- }
@@ -1,3 +0,0 @@
1
- export const __esModule: boolean;
2
- export const LoginState: {};
3
- export const LoginType: {};
@@ -1,3 +0,0 @@
1
- export const __esModule: boolean;
2
- export default ReactNativeToolkit;
3
- declare const ReactNativeToolkit: any;
@@ -1,14 +0,0 @@
1
- export const AppBadgeContext: React.Context<{
2
- appBadgeValue: never[];
3
- setAppBadgeValue: () => void;
4
- initBadge: () => void;
5
- clearBadge: () => void;
6
- hasBadge: () => false;
7
- }>;
8
- export namespace AppBadgeHelper {
9
- function initBadge(context: any, badges: any): void;
10
- function _calculateValidBadge(context: any, allBadges: any, clearedBadges: any): void;
11
- function clearBadge(context: any, scene: any): void;
12
- function hasBadge(context: any, scene: any): any;
13
- }
14
- import React from 'react';
@@ -1,26 +0,0 @@
1
- export namespace AppleLoginUtil {
2
- function fetchAndUpdateCredentialState(user: any, callback: any): Promise<void>;
3
- function requestAppleUserForLogin(): Promise<{
4
- error: string;
5
- user?: undefined;
6
- email?: undefined;
7
- identityToken?: undefined;
8
- code?: undefined;
9
- } | {
10
- user: string;
11
- email: string | null;
12
- identityToken: string | null;
13
- error?: undefined;
14
- code?: undefined;
15
- } | {
16
- error: string;
17
- code: any;
18
- user?: undefined;
19
- email?: undefined;
20
- identityToken?: undefined;
21
- }>;
22
- function requestAppleUserForLogout(): Promise<{
23
- authorizationCode: string | null;
24
- }>;
25
- function requestDeleteAccount(): Promise<void>;
26
- }
@@ -1,13 +0,0 @@
1
- export namespace ConfigDataModel {
2
- function init(defaultValues: any): void;
3
- function fetch(): void;
4
- function getVersionConfig(): {
5
- currentVersion: string;
6
- latestVersion: string;
7
- isDanger: boolean;
8
- hasNewVersion: boolean;
9
- };
10
- function get(key: any): any;
11
- function emitChange(): void;
12
- function addListenerOnce(callback: any): void;
13
- }
@@ -1,6 +0,0 @@
1
- export namespace DevConfig {
2
- function setup(initConfigs: any): void;
3
- function hasValue(pref: any): boolean;
4
- function getValue(pref: any): any;
5
- function getConfig(pref: any): any;
6
- }
@@ -1,5 +0,0 @@
1
- export namespace FrequenceManager {
2
- function canRun(config: any): boolean;
3
- function markFinishForCount(config: any): void;
4
- function markFinishForTime(config: any): void;
5
- }
@@ -1,14 +0,0 @@
1
- export namespace LoginManager {
2
- function autoLogin(): Promise<void>;
3
- function login(type: any, ...args: any[]): Promise<void>;
4
- function logOut(callback: any): void;
5
- function isLogin(): boolean;
6
- function isVisitor(): boolean;
7
- function currentUser(): any;
8
- function batchUpdateUser(keys: any, values: any, callback: any): Promise<void>;
9
- function updateUser(key: any, value: any, callback: any): void;
10
- function deleteUser(callback: any): Promise<void>;
11
- function lastLoginType(): any;
12
- function isRegisterInThisDevice(): any;
13
- function fetchWeChatAvatar(callback: any): void;
14
- }
@@ -1,9 +0,0 @@
1
- export namespace MessageModel {
2
- function fetch(): void;
3
- function getUnreadMessages(): any[];
4
- function getAllMessages(): any[];
5
- function markMessageRead(message: any): Promise<void>;
6
- function handleMessageAction(url: any, navigation: any): void;
7
- function emitChange(): void;
8
- function addListenerOnce(callback: any): void;
9
- }
@@ -1,7 +0,0 @@
1
- export namespace Notification {
2
- function addListener(event: any, callback: any): any;
3
- function addListenerOnce(event: any, callback: any): void;
4
- function removeListener(callback: any): void;
5
- function removeAllListeners(event: any): void;
6
- function postNotification(event: any, args: any): void;
7
- }
@@ -1,78 +0,0 @@
1
- export namespace BuildInPrefs {
2
- namespace LastLoginType {
3
- export let key: string;
4
- export let type: string;
5
- let _default: number;
6
- export { _default as default };
7
- }
8
- namespace DevVip {
9
- let key_1: string;
10
- export { key_1 as key };
11
- let type_1: string;
12
- export { type_1 as type };
13
- let _default_1: number;
14
- export { _default_1 as default };
15
- }
16
- namespace DevDanger {
17
- let key_2: string;
18
- export { key_2 as key };
19
- let type_2: string;
20
- export { type_2 as type };
21
- let _default_2: number;
22
- export { _default_2 as default };
23
- }
24
- namespace FrequenceConfig {
25
- let key_3: string;
26
- export { key_3 as key };
27
- let type_3: string;
28
- export { type_3 as type };
29
- let _default_3: {};
30
- export { _default_3 as default };
31
- }
32
- namespace Messages {
33
- let key_4: string;
34
- export { key_4 as key };
35
- let type_4: string;
36
- export { type_4 as type };
37
- let _default_4: never[];
38
- export { _default_4 as default };
39
- }
40
- namespace ClearBadge {
41
- let key_5: string;
42
- export { key_5 as key };
43
- let type_5: string;
44
- export { type_5 as type };
45
- let _default_5: never[];
46
- export { _default_5 as default };
47
- }
48
- namespace RegisterInThisDevice {
49
- let key_6: string;
50
- export { key_6 as key };
51
- let type_6: string;
52
- export { type_6 as type };
53
- let _default_6: boolean;
54
- export { _default_6 as default };
55
- }
56
- namespace LanguageMode {
57
- let key_7: string;
58
- export { key_7 as key };
59
- let type_7: string;
60
- export { type_7 as type };
61
- let _default_7: number;
62
- export { _default_7 as default };
63
- }
64
- namespace DisplayMode {
65
- let key_8: string;
66
- export { key_8 as key };
67
- let type_8: string;
68
- export { type_8 as type };
69
- let _default_8: number;
70
- export { _default_8 as default };
71
- }
72
- }
73
- export namespace PrefData {
74
- function load(initPrefs: any): Promise<void>;
75
- function getValue(pref: any): any;
76
- function setValue(pref: any, value: any): Promise<void>;
77
- function addListener(callback: any): void;
78
- }
@@ -1,15 +0,0 @@
1
- export namespace ReportUtil {
2
- function init(): void;
3
- function report(eventId: any, params: any): void;
4
- function setCommonInfo(key: any, value: any): void;
5
- function getCommonInfo(): {
6
- appVer: string;
7
- platform: "ios" | "android" | "windows" | "macos" | "web";
8
- sysVer: string | number;
9
- model: string;
10
- brand: string;
11
- device: string;
12
- };
13
- function viewAppear(page: any): void;
14
- function viewDisappear(page: any): void;
15
- }
@@ -1,4 +0,0 @@
1
- export namespace SentryManager {
2
- function init(): void;
3
- function setTag(key: any, value: any): void;
4
- }
@@ -1,4 +0,0 @@
1
- export namespace SyncPrefData {
2
- function setPrefString(key: any, value: any): void;
3
- function getPrefString(key: any): any;
4
- }
@@ -1,25 +0,0 @@
1
- export let ToolkitConfig: any;
2
- export function initToolkitConfig(config: any): void;
3
- export namespace Tool {
4
- function sleep(delay: any): Promise<any>;
5
- function formatDate(date: any, fmt: any): any;
6
- function jsonify(target: any): any;
7
- function isChinese(value: any): boolean;
8
- function isRemoteURL(str: any): any;
9
- function get_url_extension(url: any): any;
10
- function generateObjectId(): string;
11
- function humanFileSize(bytes: any, ...args: any[]): string;
12
- function useForceUpdate(): () => void;
13
- function showToast(toast: any): void;
14
- function goAppStoreReview(): void;
15
- function goUpgrade(): void;
16
- function notifyMe(text: any): Promise<void>;
17
- function hasAndroidWritePermission(): Promise<boolean>;
18
- function savePicture(url: any, albumName: any): Promise<{
19
- errorCode: number;
20
- errMsg?: undefined;
21
- } | {
22
- errorCode: number;
23
- errMsg: string;
24
- }>;
25
- }
@@ -1,24 +0,0 @@
1
- export namespace VipAndroidManager {
2
- function queryOrder(orderId: any): Promise<{
3
- paid: any;
4
- e?: undefined;
5
- } | {
6
- paid: boolean;
7
- e: any;
8
- }>;
9
- function recover(): Promise<{
10
- errorCode: number;
11
- errorMsg?: undefined;
12
- } | {
13
- errorCode: number;
14
- errorMsg: string;
15
- }>;
16
- function getPackages(): any;
17
- function purchase(purchasePackage: any): Promise<{
18
- errorCode: number;
19
- errorMsg: string | undefined;
20
- } | {
21
- errorCode: number;
22
- errorMsg?: undefined;
23
- }>;
24
- }
@@ -1,24 +0,0 @@
1
- export namespace VipManager {
2
- function init(): void;
3
- function purchase(purchasePackage: any): Promise<{
4
- errorCode: number;
5
- errorMsg?: undefined;
6
- } | {
7
- errorCode: number;
8
- errorMsg: any;
9
- }>;
10
- function recover(): Promise<{
11
- errorCode: number;
12
- errorMsg?: undefined;
13
- } | {
14
- errorCode: number;
15
- errorMsg: any;
16
- }>;
17
- function getPackages(): Promise<any>;
18
- function isVip(): any;
19
- function isForeverVip(): any;
20
- function vipEndTime(): any;
21
- function vipCountDay(): number;
22
- function isTrailVip(): boolean;
23
- function refreshVip(customerInfo: any): Promise<void>;
24
- }
@@ -1,3 +0,0 @@
1
- export namespace WeChatLoginUtil {
2
- function doLogin(WeiXinId: any, WeiXinSecret: any, callback: any): void;
3
- }
@@ -1,2 +0,0 @@
1
- export let LoginState: {};
2
- export let LoginType: {};
@@ -1,19 +0,0 @@
1
- export default ReactNativeToolkit;
2
- export * from "./AppBadgeContext";
3
- export * from "./AppleLoginUtil";
4
- export * from "./ConfigDataModel";
5
- export * from "./DevConfig";
6
- export * from "./Frequence";
7
- export * from "./LoginManager";
8
- export * from "./MessageModel";
9
- export * from "./Notification";
10
- export * from "./PrefData";
11
- export * from "./ReportUtil";
12
- export * from "./SentryManager";
13
- export * from "./SyncPrefData";
14
- export * from "./Tool";
15
- export * from "./VipAndroidManager";
16
- export * from "./VipManager";
17
- export * from "./WeChatLoginUtil";
18
- export * from "./constant";
19
- declare const ReactNativeToolkit: any;