小编Chu*_*ưng的帖子

我如何检查安装在反应本机代码中的应用程序

我尝试检查我的 React Native 项目中的其他应用程序安装,我使用的模块如下:https: //www.npmjs.com/package/react-native-check-app-install 但总是收到此错误:无法读取属性未定义的“pkgName”这是我的代码:

    AppInstalledChecker
    .isAppInstalledAndroid('com.skype.raider') 
    .then((isInstalled) => {
        // isInstalled is true if the app is installed or false if not 
         console.log('App Skype status: ', isInstalled);
    });
Run Code Online (Sandbox Code Playgroud)

任何人都可以建议我一种方法,以便在 React Native 中检查应用程序安装(两者:iOS/Android)

react-native

6
推荐指数
2
解决办法
2万
查看次数

标签 统计

react-native ×1