angelos3lex / react-native-smtp-mailer

Send emails by connecting to smtp server+attachments, using android javamail and ios mailcore2
39 stars 32 forks source link

MacOs for iOS: RNSmtpMailer is undefined or React module not found issue #21

Closed sjovicic closed 3 years ago

sjovicic commented 4 years ago

I had the issue that RNSmtpMailer is undefined and later that I can not build app since React module path is wrong.

If you follow README steps on MacOS you can get two issues:

  1. RNSmtpMailer is "undefined" while trying to invoke it with
  2. React module can not be found while building the app

Solution for #1 is to run $ npm install react-native-smtp-mailer --save (from README steps) and then update RNSmtpMailer.podspec RNSmtpMailer.podspec.txtin ios folder (attached). Solution was given here: https://github.com/angelos3lex/react-native-smtp-mailer/issues/19#issuecomment-531601108 Proceede with next steps in the README.

Solution for #2 is to update Header search Paths to use lowercase name for React folder Insted of $(SRCROOT)/../../../React you should have $(SRCROOT)/../../../react