Skip to content

Instantly share code, notes, and snippets.

View Rowan-Paul's full-sized avatar
:octocat:
Coding or something...

Rowan-Paul Rowan-Paul

:octocat:
Coding or something...
View GitHub Profile
@Rowan-Paul
Rowan-Paul / SubscriptionManager.tsx
Created August 14, 2025 19:04
Fixed subscription manager for Expo IAP
import { deepLinkToSubscriptions, useIAP } from 'expo-iap';
import React, { useEffect, useState } from 'react';
import { ActivityIndicator, Alert, Platform, ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
const SUBSCRIPTION_SKUS = ['com.vraaghetfred.pro'];
interface SubscriptionStatus {
isActive: boolean;
id?: string;
expirationDate?: Date;