React Native-Add to Favorite

Using the following method when the user adds a product to favorites:


var data = {"OM.pf" : "Product Code", "OM.pfu" : "1", "OM.ppr" : "Product Price"};
api.customEvent("Add To Favorites", data);


Using the following when the user removes a product from favorites ,use the following method:


var data = {"OM.pf" : "Product Code", "OM.pfu" : "-1", "OM.ppr" : "Product Price"};
api.customEvent("Add To Favorites", data);



Parent Page: React Native (Expo) Visilabs Implementation

Copyright 2020 Related Digital