我尝试检查我的 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 ×1