Docs

Link Creation

Generate smart links programmatically in your React Native app

import Grovs from 'react-native-grovs-wrapper';
 
try {
    const link = await Grovs.generateLink(
        "Check out this product",           // title
        "Limited time offer",               // subtitle
        "https://example.com/image.jpg",    // imageURL
        {                                   // data
            productId: "12345",
            screen: "product_detail",
        },
        ["promotion", "share"],             // tags
        {                                   // customRedirects
            android: {
                link: "https://example.com/android",
                open_if_app_installed: true,
            },
            ios: {
                link: "https://example.com/ios",
                open_if_app_installed: false,
            },
            desktop: {
                link: "https://example.com/desktop",
                open_if_app_installed: true,
            },
        },
        false,                              // showPreviewIos
        false,                              // showPreviewAndroid
        {                                   // tracking
            utm_medium: "share_button",
            utm_source: "in_app",
            utm_campaign: "spring_sale",
        }
    );
    console.log("Generated:", link);
} catch (error) {
    console.error("Error:", error);
}

Parameters

ParameterTypeDescription
titlestring?Link preview title
subtitlestring?Link preview subtitle
imageURLstring?Link preview image URL
dataobject?Custom payload delivered on deep link open
tagsstring[]?Tags for filtering and analytics
customRedirectsCustomRedirects?Override default redirect behavior per platform
showPreviewIosboolean?Show link preview on iOS
showPreviewAndroidboolean?Show link preview on Android
trackingobject?UTM tracking parameters
Edit this page on GitHubLast updated 2026-07-29