SMS subscription
import { BatchProfile, BatchSMSSubscriptionState } from '@batch.com/react-native-plugin';
// This requires to have a custom user ID registered
// by calling the `identify` method beforehand.
BatchProfile.editor()
.setPhoneNumber("+33123456789") // Null to erase. A valid E.164 phone number.
.setSMSMarketingSubscription(BatchSMSSubscriptionState.SUBSCRIBED) // or BatchSMSSubscriptionState.UNSUBSCRIBED
.save();Last updated

