mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-01 13:53:11 +08:00
Use nanoid
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user