Topic preferences
The Batch React-Native Plugin allows you to:
Add or remove topic preferences from a user profile (the profile is created automatically if it doesn’t already exist).
Partially update topic preferences within a user profile.
Requires Batch React-Native Plugin 12.2+
Here’s how to update topic preferences:
import { BatchProfile } from '@batch.com/react-native-plugin';
BatchProfile.editor()
.setTopicPreferences([("technology", "finance"]) // Null to erase.
// Alternatively, partially update them with:
.addToTopicPreferences(["investing"])
.removeFromTopicPreferences(["travel"])
.save();Last updated

