Email subscription
import { BatchProfile } from '@batch.com/react-native-plugin';
// This requires to have a custom user ID registered
// by calling the `identify` method beforehand.
BatchProfile.editor()
.setEmailAddress("john.doe@batch.com") // Null to erase. Addresses must be valid.
.setEmailMarketingSubscription(BatchEmailSubscriptionState.SUBSCRIBED) // or BatchEmailSubscriptionState.UNSUBSCRIBED
.save();Last updated

