Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Mailer#canSend #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

martijndeh
Copy link

I need a way to check if the user is able to send a mail. Please let me know if you have any feedback.

```js
var Mailer = require('NativeModules').RNMail;

Mailer.canSend((error, canSend) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like error in the callback is always null. Seems like outcome canSend is always true or false. maybe keep the apis Mailer.canSend(canSend => {});?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, but I wanted to stick to the error-first callback convention. I think this is more valuable than saving an argument.

What do you think?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any thoughts?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChenSaranga
Copy link

Hey, I need this ability too, is this something that is going to be?

@chirag04
Copy link
Owner

@martijndeh can you update?

@pke
Copy link

pke commented Apr 28, 2021

@chirag04 is it possible to merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants