Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
using deep link to open mail app in react native

I am trying to find out what the deeplink url is for the mail app in ios. I have an alert that is opening and then when a user presses 'ok', they will be redirected to the default mail app.

const openEmailApp = () => {
    if (Platform.OS === 'ios') {
      Linking.openURL('mailto:');
    }
};

I imagine the mail app deeplink is something like

mailapp:// 
Alert.alert('Verify Email address', 'Press Ok to open mail app', [
    {
      text: 'Cancel',
      onPress: () => navigation.navigate('Menu'),
      style: 'cancel',
    },
    {text: 'OK', onPress: {openEmailApp}},
  ]);

I am also getting an error for illegal cb function.

cb is not a function. (In 'cb(value)', 'cb' is an instance of Object)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You were wrapping openEmailApp inside curly brackets. Write it like this

Alert.alert('Verify Email address', 'Press Ok to open mail app', [
    {
      text: 'Cancel',
      onPress: () => navigation.navigate('Menu'),
      style: 'cancel',
    },
    {text: 'OK', onPress: openEmailApp },
  ]);

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!