postalsys / imapflow

IMAP Client library for EmailEngine Email API (https://emailengine.app)
https://imapflow.com
Other
367 stars 64 forks source link

[Feature Request] React compatibility #223

Closed ndesgranges closed 3 weeks ago

ndesgranges commented 4 weeks ago

Is your feature request related to a problem? Please describe. I'm trying to use the library in a react native project

Describe the solution you'd like The library requires some node standard modules like tls that are not part of the native React runtime

Describe alternatives you've considered Any library I could find are not actively maintained

So my only options as for now are :

Additional context I'm trying to list emails inside a react native application using imap. (I might need to require sending emails using smtp in the future, but not relevant to this library)

andris9 commented 3 weeks ago

React is a front-end framework, and ImapFlow only runs on the back end. You can not use ImapFlow without modules like "net" or "tls"

ndesgranges commented 3 weeks ago

React is a front-end framework, and ImapFlow only runs on the back end.

This is true for vanilla React. React native does more. This argument is not relevant. You'll never need this kind of featureq in react. You may in react native.

You can not use ImapFlow without modules like "net" or "tls"

This is what I pointed out. See section "Describe the solution you'd like". There are modules in react native to have similar functionnalities like react-native-tcp-socket