fix rn-auto
This commit is contained in:
@@ -107,6 +107,12 @@ class RNAuto {
|
||||
return await RNBotModule.recents();
|
||||
}
|
||||
|
||||
/** 打开应用 */
|
||||
async openApp(packageName: string, activityName?: string): Promise<boolean> {
|
||||
if (!this.checkAndroid()) return false;
|
||||
return await RNBotModule.openApp(packageName, activityName || '');
|
||||
}
|
||||
|
||||
/** 延迟 */
|
||||
delay(ms: number): Promise<void> {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
|
||||
Reference in New Issue
Block a user