Shopping (React Native)
Shopping configurations
Customize shopping click behaviors
Product Hydration
FireworkSDK.getInstance().shopping.onUpdateProductDetails = async (event) => {
let products: Product[] = []
for (let productId of event.productIds) {
let product: Product = { productId: productId };
// The latest product information can be fetched from the servers of the host app.
product.name = 'latest-product-name';
product.description = 'latest-product-description';
products.push(product);
}
return products;
};Reference
Last updated
Was this helpful?