diff --git a/Docs/API.md b/Docs/API.md index 5e256bf8..c486a43a 100755 --- a/Docs/API.md +++ b/Docs/API.md @@ -376,7 +376,7 @@ Set the user emails and encrypt them. | option | type | description | | -------------- | ---- |------------- | -| emailsCryptType | int | none - 0 (default), SHA1 - 1, MD5 - 2 | +| emailsCryptType | int | none - 0 (default), SHA1 - 1, MD5 - 2, SHA256 - 3 | | emails | array | comma separated list of emails | diff --git a/ios/RNAppsFlyer.m b/ios/RNAppsFlyer.m index 3ca0f61e..ede6da59 100755 --- a/ios/RNAppsFlyer.m +++ b/ios/RNAppsFlyer.m @@ -119,6 +119,9 @@ @implementation RNAppsFlyer case EmailCryptTypeMD5: emailsCryptType = EmailCryptTypeMD5; break; + case EmailCryptTypeSHA256: + emailsCryptType = EmailCryptTypeSHA256; + break; default: emailsCryptType = EmailCryptTypeNone; }