@capivv/capacitor-sdk 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -238,6 +238,28 @@ Get all active entitlements for the current user.
|
|
|
238
238
|
| purchaseCompleted | Fired when a purchase completes |
|
|
239
239
|
| purchaseFailed | Fired when a purchase fails |
|
|
240
240
|
|
|
241
|
+
## Paywall Components
|
|
242
|
+
|
|
243
|
+
Pre-built paywall components are available as companion packages:
|
|
244
|
+
|
|
245
|
+
- **React**: `npm install @capivv/capacitor-react`
|
|
246
|
+
- **Vue**: `npm install @capivv/capacitor-vue`
|
|
247
|
+
- **Angular**: `npm install @capivv/capacitor-angular`
|
|
248
|
+
|
|
249
|
+
```tsx
|
|
250
|
+
// React example
|
|
251
|
+
import { CapivvPaywall } from '@capivv/capacitor-react';
|
|
252
|
+
|
|
253
|
+
<CapivvPaywall
|
|
254
|
+
offeringId="default"
|
|
255
|
+
title="Unlock Premium"
|
|
256
|
+
features={['Unlimited access', 'No ads', 'Priority support']}
|
|
257
|
+
showRestoreButton={true}
|
|
258
|
+
onPurchaseComplete={(result) => console.log('Purchased!', result)}
|
|
259
|
+
onDismiss={() => setShowPaywall(false)}
|
|
260
|
+
/>
|
|
261
|
+
```
|
|
262
|
+
|
|
241
263
|
## Integration with Ionic
|
|
242
264
|
|
|
243
265
|
### Angular
|
package/package.json
CHANGED