This commit is contained in:
2026-03-24 21:11:17 +08:00
parent aee736fe0b
commit b63c00d251
9 changed files with 104 additions and 11 deletions

8
services/appUtils.ts Normal file
View File

@@ -0,0 +1,8 @@
import { NativeModules, Platform } from 'react-native';
export async function isModifiedAppInstalled(scheme: string): Promise<boolean> {
if (Platform.OS !== 'android') return false;
const { AppUtilsModule } = NativeModules;
if (!AppUtilsModule) return false;
return await AppUtilsModule.isModifiedAppInstalled(scheme);
}