使用 React Native 在 Android 中使用 bundle id 打开其他应用程序?

Open other app using bundle id in Android using React Native?

是否可以仅使用我需要打开的应用程序的包 ID 在我的应用程序中打开另一个应用程序?如果是怎么办?

您无法在您的应用内打开其他应用,但可以重定向到其他应用(第三方应用),如 whatsapp、instagram 或任何其他应用

 const url = 'whatsapp://';

             Linking.canOpenURL(url).then(supported=> {
                if (!supported) {

                    console.log('Can\'t handle url: ' + url);

         }else{

                    return Linking.openURL(url);

        }

         }).catch(err =>
         console.error('An error occurred', err));