React Native bridge for the ZeroSettleKit iOS SDK. This package exposes the ZSMigrateTipView SwiftUI component as a React Native view.
- iOS-only: This package wraps iOS-native SwiftUI views
- ZSMigrateTipView: A beautiful UI component for migrating users from Apple billing to direct billing with a 15% discount
- Automatic state management: Handles checkout flow, success states, and persistent dismissal
npm install react-native-zerosettle
# or
yarn add react-native-zerosettle- Ensure iOS 17.0+ in your Podfile:
platform :ios, '17.0'- Install pods:
cd ios && pod installThat's it! The package automatically pulls in ZeroSettleKit from CocoaPods.
import { ZSMigrateTipView } from 'react-native-zerosettle';
function MyScreen() {
return (
<View style={{ flex: 1 }}>
<ZSMigrateTipView
backgroundColorHex="#1E1E1E"
style={{ marginHorizontal: 16, marginTop: 20 }}
/>
</View>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
backgroundColorHex |
string |
"#000000" |
Background color in hex format (e.g., "#FF5733") |
style |
ViewStyle |
- | Standard React Native view style |
The ZSMigrateTipView component:
- Shows a promotional banner encouraging users to switch from Apple billing to direct billing
- Expands to show a Stripe checkout form when tapped
- Handles the checkout flow inline with Apple Pay and card options
- After successful checkout, prompts users to cancel their Apple subscription
- Shows a congratulations message with confetti on completion
- Persists the dismissed state so users don't see it again
| Platform | Supported |
|---|---|
| iOS | ✅ (17.0+) |
| Android | ❌ (renders empty view) |
Check out the example app to see the component in action:
# Install dependencies
yarn
# Run the example on iOS
yarn example iosMIT