Skip to main content

Deep link to subscriptions

deepLinkToSubscriptionsAndroid

Deep link to subscriptions screen.

Signature

deepLinkToSubscriptionsAndroid(
/** The product's SKU */
sku: Sku,
): Promise<void>;

Usage

import React from 'react';
import {Button} from 'react-native';
import {deepLinkToSubscriptionsAndroid} from 'react-native-iap';

const App = () => {
const handleSubscriptions = async () => {
await deepLinkToSubscriptionsAndroid({sku: 'sku-id'});
};

return <Button title="Manage subscriptions" onPress={handleSubscriptions} />;
};