📜  react native open gmail app - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:03.649000             🧑  作者: Mango

代码示例2
openMailApp() {
    if (Platform.OS === 'android') {
      NativeModules.UIMailLauncher.launchMailApp(); // UIMailLauncher is the 
      return;
    }
    Linking.openURL('message:0'); // iOS
    return;
  }