1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-11-01 13:53:11 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Use nanoid

This commit is contained in:
sunnylqm
2021-10-04 00:41:34 +08:00
parent 3a526d1b15
commit 898ed85b8c
3 changed files with 11 additions and 6 deletions

View File

@@ -21,6 +21,11 @@ if (!Pushy) {
throw new Error('react-native-update模块无法加载请对照安装文档检查配置。');
}
// TODO: save and export current version info
// name
// description
// metaInfo
export const downloadRootDir = Pushy.downloadRootDir;
export const packageVersion = Pushy.packageVersion;
export const currentVersion = Pushy.currentVersion;
@@ -39,7 +44,7 @@ if (Platform.OS === 'android' && !Pushy.isUsingBundleUrl) {
const eventEmitter = new NativeEventEmitter(Pushy);
if (!uuid) {
uuid = require('uuid/v4')();
uuid = require('nanoid/non-secure')();
Pushy.setUuid(uuid);
}