Check if a single entitlement is currently active.

NamiEntitlementManager.isEntitlementActive(_ referenceId: String ) -> Bool
NamiEntitlementManager.isEntitlementActive(referenceId: String): Boolean
static Future<bool> isEntitlementActive(String referenceId)
import {NamiEntitlementManager, NamiEntitlement} from 'react-native-nami-sdk';

const isEntitlementActive = await NamiEntitlementManager.isEntitlementActive(referenceId);
NamiEntitlementManager.IsEntitlementActive(referenceId);

Parameters

  • referenceId - a string that is the entitlement reference ID from the Control Center.

Returns

true if active, false otherwise.