@funkit/connect-rn 6.2.0 → 8.0.0
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/CHANGELOG.md +148 -0
- package/README.md +97 -60
- package/dist/chunk-D64EJ57D.js +161 -0
- package/dist/chunk-D64EJ57D.js.map +7 -0
- package/dist/{chunk-VIMRV7N2.js → chunk-KZOSYNGV.js} +369 -207
- package/dist/chunk-KZOSYNGV.js.map +7 -0
- package/dist/{chunk-PLSQBNDE.js → chunk-SRVRWQO6.js} +5 -3
- package/dist/{chunk-PLSQBNDE.js.map → chunk-SRVRWQO6.js.map} +1 -1
- package/dist/clients/lighter.js +4 -2
- package/dist/clients/lighter.js.map +1 -1
- package/dist/clients/nado.js +5 -3
- package/dist/clients/nado.js.map +1 -1
- package/dist/clients/solana/index.d.ts +5 -0
- package/dist/clients/solana/index.d.ts.map +1 -0
- package/dist/clients/solana/solanaWithdrawal.d.ts +20 -0
- package/dist/clients/solana/solanaWithdrawal.d.ts.map +1 -0
- package/dist/clients/solana/useSolanaWithdrawal.d.ts +13 -0
- package/dist/clients/solana/useSolanaWithdrawal.d.ts.map +1 -0
- package/dist/clients/solana.d.ts +1 -0
- package/dist/clients/solana.js +87 -0
- package/dist/clients/solana.js.map +7 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7035 -2945
- package/dist/index.js.map +4 -4
- package/dist/src/components/Grabber.d.ts +3 -1
- package/dist/src/components/Grabber.d.ts.map +1 -1
- package/dist/src/components/LoadingSpinner.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts +7 -1
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts +11 -0
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/FiatFailureBanner.d.ts +14 -0
- package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormScreen.d.ts +11 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts +9 -2
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +15 -2
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts +21 -0
- package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -0
- package/dist/src/fiat/FiatReceipt.d.ts +21 -0
- package/dist/src/fiat/FiatReceipt.d.ts.map +1 -0
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts +11 -0
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
- package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
- package/dist/src/fiat/ScreenSurfaceCover.d.ts +11 -0
- package/dist/src/fiat/ScreenSurfaceCover.d.ts.map +1 -0
- package/dist/src/fiat/SurfaceSlot.d.ts +12 -1
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/depositOutcome.d.ts +33 -0
- package/dist/src/fiat/depositOutcome.d.ts.map +1 -0
- package/dist/src/fiat/fieldAutofill.d.ts.map +1 -1
- package/dist/src/fiat/formLayout.d.ts +12 -5
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/formScreenProps.d.ts +4 -2
- package/dist/src/fiat/formScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/kycFormPosition.d.ts +25 -1
- package/dist/src/fiat/kycFormPosition.d.ts.map +1 -1
- package/dist/src/fiat/kycFormState.d.ts +10 -0
- package/dist/src/fiat/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts +21 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
- package/dist/src/fiat/methodName.d.ts +8 -0
- package/dist/src/fiat/methodName.d.ts.map +1 -0
- package/dist/src/fiat/providerFailover.d.ts +12 -0
- package/dist/src/fiat/providerFailover.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +4 -2
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts +29 -0
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts.map +1 -0
- package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts +10 -0
- package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +6 -0
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts +7 -3
- package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/describeThrown.d.ts +14 -0
- package/dist/src/fiat/providers/describeThrown.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayTrace.d.ts +25 -0
- package/dist/src/fiat/providers/moonpayTrace.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeAccountCreation.d.ts +12 -0
- package/dist/src/fiat/providers/stripeAccountCreation.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeAuthorize.d.ts +5 -0
- package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeCheckout.d.ts +28 -0
- package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeKyc.d.ts +56 -0
- package/dist/src/fiat/providers/stripeKyc.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeKycInfo.d.ts +11 -0
- package/dist/src/fiat/providers/stripeKycInfo.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeOnramp.d.ts +135 -0
- package/dist/src/fiat/providers/stripeOnramp.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeOnrampBridge.d.ts +20 -0
- package/dist/src/fiat/providers/stripeOnrampBridge.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripePayment.d.ts +34 -0
- package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSdk.d.ts +19 -0
- package/dist/src/fiat/providers/stripeSdk.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts +18 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSessionAuth.d.ts +43 -0
- package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +35 -0
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -0
- package/dist/src/fiat/quoteRefusal.d.ts +27 -0
- package/dist/src/fiat/quoteRefusal.d.ts.map +1 -1
- package/dist/src/fiat/renderCaptureSurface.d.ts +1 -1
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/stepDetails.d.ts +5 -1
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/useFiatDirectDelivery.d.ts +5 -4
- package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +1 -1
- package/dist/src/fiat/useIdentityAssertion.d.ts +35 -0
- package/dist/src/fiat/useIdentityAssertion.d.ts.map +1 -0
- package/dist/src/fiat/useKycCompletion.d.ts +11 -3
- package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
- package/dist/src/fiat/useQuoteableCeiling.d.ts +28 -0
- package/dist/src/fiat/useQuoteableCeiling.d.ts.map +1 -0
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts +8 -1
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts +4 -2
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +4 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositReceivedToast.d.ts +17 -0
- package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -0
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +6 -2
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FiatRegionBlockedStep.d.ts +14 -0
- package/dist/src/flow/FiatRegionBlockedStep.d.ts.map +1 -0
- package/dist/src/flow/FiatRegionPendingStep.d.ts +10 -0
- package/dist/src/flow/FiatRegionPendingStep.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +14 -20
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +18 -5
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts +11 -0
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -0
- package/dist/src/flow/StepPage.d.ts +16 -0
- package/dist/src/flow/StepPage.d.ts.map +1 -0
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/accountContext.d.ts +6 -0
- package/dist/src/flow/accountContext.d.ts.map +1 -0
- package/dist/src/flow/depositFlowConfig.d.ts +116 -31
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts +21 -0
- package/dist/src/flow/depositMethods.d.ts.map +1 -0
- package/dist/src/flow/depositRailCopy.d.ts +20 -0
- package/dist/src/flow/depositRailCopy.d.ts.map +1 -0
- package/dist/src/flow/flowError.d.ts +47 -0
- package/dist/src/flow/flowError.d.ts.map +1 -0
- package/dist/src/flow/flowStepHeight.d.ts +19 -0
- package/dist/src/flow/flowStepHeight.d.ts.map +1 -0
- package/dist/src/flow/useDepositReceivedToast.d.ts +22 -0
- package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -0
- package/dist/src/flow/validateClientMetadata.d.ts +2 -3
- package/dist/src/flow/validateClientMetadata.d.ts.map +1 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts +5 -4
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/geo/useFiatRegionSupport.d.ts +23 -0
- package/dist/src/geo/useFiatRegionSupport.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +15 -15
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/hooks/usePressScale.d.ts +22 -3
- package/dist/src/hooks/usePressScale.d.ts.map +1 -1
- package/dist/src/hooks/useSheetFade.d.ts +11 -0
- package/dist/src/hooks/useSheetFade.d.ts.map +1 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts +1 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
- package/dist/src/icons/KycIdentityIcon.d.ts +2 -1
- package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -1
- package/dist/src/icons/KycStatusIcon.d.ts +1 -1
- package/dist/src/icons/KycStatusIcon.d.ts.map +1 -1
- package/dist/src/icons/kycArtwork.d.ts +15 -0
- package/dist/src/icons/kycArtwork.d.ts.map +1 -1
- package/dist/src/identity/IdentityContext.d.ts +31 -8
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/logging/debugBridge.d.ts +13 -0
- package/dist/src/logging/debugBridge.d.ts.map +1 -0
- package/dist/src/native/glassEffect.d.ts +18 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -0
- package/dist/src/providers/FunkitProvider.d.ts +18 -9
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts +20 -14
- package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
- package/dist/src/providers/useFrozenIdentity.d.ts +19 -0
- package/dist/src/providers/useFrozenIdentity.d.ts.map +1 -0
- package/dist/src/providers/useFunkitCheckout.d.ts +7 -3
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +7 -13
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +2 -3
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/statsig/useStatsigReady.d.ts +11 -0
- package/dist/src/statsig/useStatsigReady.d.ts.map +1 -0
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWithdrawScreen.d.ts +3 -1
- package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
- package/dist/src/swapped/paymentNavigation.d.ts +21 -0
- package/dist/src/swapped/paymentNavigation.d.ts.map +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts +15 -11
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +495 -363
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +45 -33
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +5 -5
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useDepositRecipient.d.ts +2 -2
- package/dist/src/transfer/hooks/useDepositRecipient.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts +3 -2
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTransferInit.d.ts +2 -3
- package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +4 -3
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +18 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/fiatTargetDecimals.d.ts +13 -0
- package/dist/src/withdrawal/fiatTargetDecimals.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useSourceTokenDecimals.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts +11 -0
- package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts.map +1 -0
- package/expo-module.config.json +6 -0
- package/ios/FunkitGlassEffect.podspec +23 -0
- package/ios/FunkitGlassEffectModule.swift +126 -0
- package/ios/GlassStyle.swift +52 -0
- package/ios/GlassView.swift +305 -0
- package/package.json +23 -7
- package/dist/chunk-VIMRV7N2.js.map +0 -7
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// Forked from expo-glass-effect 57.0.3 (MIT). Copyright 2022-present 650 Industries.
|
|
2
|
+
// Registered under its own name so a host that also links expo-glass-effect
|
|
3
|
+
// keeps both.
|
|
4
|
+
|
|
5
|
+
import ExpoModulesCore
|
|
6
|
+
|
|
7
|
+
public final class FunkitGlassEffectModule: Module {
|
|
8
|
+
public func definition() -> ModuleDefinition {
|
|
9
|
+
Name("FunkitGlassEffect")
|
|
10
|
+
|
|
11
|
+
Constant("isLiquidGlassAvailable") {
|
|
12
|
+
#if compiler(>=6.2) // Xcode 26
|
|
13
|
+
if #available(iOS 26.0, tvOS 26.0, macOS 26.0, *) {
|
|
14
|
+
// The system ignores `UIDesignRequiresCompatibility` in apps built with the iOS 27 SDK, so
|
|
15
|
+
// for those the opt-out below no longer describes what the app renders.
|
|
16
|
+
if #available(iOS 27.0, tvOS 27.0, macOS 27.0, *), buildSDKMajorVersion() >= 27 {
|
|
17
|
+
return true
|
|
18
|
+
}
|
|
19
|
+
if let infoPlist = Bundle.main.infoDictionary,
|
|
20
|
+
let requiresCompatibility = infoPlist["UIDesignRequiresCompatibility"] as? Bool {
|
|
21
|
+
return !requiresCompatibility
|
|
22
|
+
}
|
|
23
|
+
return true
|
|
24
|
+
}
|
|
25
|
+
#endif
|
|
26
|
+
return false
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
Constant("isGlassEffectAPIAvailable") {
|
|
30
|
+
#if compiler(>=6.2)
|
|
31
|
+
if #available(iOS 26.0, tvOS 26.0, macOS 26.0, *) {
|
|
32
|
+
guard let glassEffectClass = NSClassFromString("UIGlassEffect") as? NSObject.Type else {
|
|
33
|
+
return false
|
|
34
|
+
}
|
|
35
|
+
return glassEffectClass.responds(to: Selector(("effectWithStyle:")))
|
|
36
|
+
}
|
|
37
|
+
#endif
|
|
38
|
+
return false
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
View(GlassView.self) {
|
|
42
|
+
Prop("glassEffectStyle") { (view, config: Either<GlassStyle, GlassEffectStyleConfig>?) in
|
|
43
|
+
if let styleConfig: GlassEffectStyleConfig = config?.get() {
|
|
44
|
+
view.setGlassStyle(styleConfig)
|
|
45
|
+
} else if let style: GlassStyle = config?.get() {
|
|
46
|
+
view.setGlassStyle(style)
|
|
47
|
+
} else {
|
|
48
|
+
view.setGlassStyle(.regular)
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
Prop("tintColor") { (view, tintColor: UIColor?) in
|
|
53
|
+
view.setTintColor(tintColor)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
Prop("isInteractive") { (view, interactive: Bool) in
|
|
57
|
+
view.setInteractive(interactive)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
Prop("colorScheme", .auto) { (view, colorScheme: GlassColorScheme) in
|
|
61
|
+
view.setColorScheme(colorScheme)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
Prop("borderRadius") { (view, border: CGFloat?) in
|
|
65
|
+
view.setBorderRadius(border)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
Prop("borderBottomLeftRadius") { (view, radius: CGFloat?) in
|
|
69
|
+
view.setBorderBottomLeftRadius(radius)
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
Prop("borderBottomRightRadius") { (view, radius: CGFloat?) in
|
|
73
|
+
view.setBorderBottomRightRadius(radius)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
Prop("borderTopLeftRadius") { (view, radius: CGFloat?) in
|
|
77
|
+
view.setBorderTopLeftRadius(radius)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
Prop("borderTopRightRadius") { (view, radius: CGFloat?) in
|
|
81
|
+
view.setBorderTopRightRadius(radius)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
Prop("borderTopStartRadius") { (view, radius: CGFloat?) in
|
|
85
|
+
view.setBorderTopStartRadius(radius)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
Prop("borderTopEndRadius") { (view, radius: CGFloat?) in
|
|
89
|
+
view.setBorderTopEndRadius(radius)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
Prop("borderBottomStartRadius") { (view, radius: CGFloat?) in
|
|
93
|
+
view.setBorderBottomStartRadius(radius)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
Prop("borderBottomEndRadius") { (view, radius: CGFloat?) in
|
|
97
|
+
view.setBorderBottomEndRadius(radius)
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
Prop("borderCurve") { (view, curve: String?) in
|
|
101
|
+
view.setBorderCurve(curve)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
Prop("concentricCorners", false) { (view, concentric: Bool) in
|
|
105
|
+
view.setConcentricCorners(concentric)
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
Prop("concentricMinimumRadius") { (view, minimum: CGFloat?) in
|
|
109
|
+
view.setConcentricMinimumRadius(minimum)
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
Major version of the SDK the app was built with, read from the `DTPlatformVersion` that Xcode
|
|
117
|
+
stamps into the app's Info.plist. Returns 0 for a bundle Xcode didn't stamp, so callers fall back
|
|
118
|
+
to the behavior of the older SDK.
|
|
119
|
+
*/
|
|
120
|
+
private func buildSDKMajorVersion() -> Int {
|
|
121
|
+
guard let platformVersion = Bundle.main.infoDictionary?["DTPlatformVersion"] as? String,
|
|
122
|
+
let major = Int(platformVersion.prefix { $0.isNumber }) else {
|
|
123
|
+
return 0
|
|
124
|
+
}
|
|
125
|
+
return major
|
|
126
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Forked from expo-glass-effect 57.0.3 (MIT). Copyright 2022-present 650 Industries.
|
|
2
|
+
|
|
3
|
+
import ExpoModulesCore
|
|
4
|
+
import UIKit
|
|
5
|
+
|
|
6
|
+
public enum GlassStyle: String, Enumerable {
|
|
7
|
+
case clear
|
|
8
|
+
case regular
|
|
9
|
+
case none
|
|
10
|
+
|
|
11
|
+
#if compiler(>=6.2) // Xcode 26
|
|
12
|
+
@available(iOS 26.0, tvOS 26.0, macOS 26.0, *)
|
|
13
|
+
func toUIGlassEffectStyle() -> UIGlassEffect.Style? {
|
|
14
|
+
switch self {
|
|
15
|
+
case .clear:
|
|
16
|
+
return .clear
|
|
17
|
+
case .regular:
|
|
18
|
+
return .regular
|
|
19
|
+
case .none:
|
|
20
|
+
return nil
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
#endif
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
internal struct GlassEffectStyleConfig: Record {
|
|
27
|
+
@Field
|
|
28
|
+
var style: GlassStyle = .regular
|
|
29
|
+
|
|
30
|
+
@Field
|
|
31
|
+
var animate: Bool = false
|
|
32
|
+
|
|
33
|
+
@Field
|
|
34
|
+
var animationDuration: Double?
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
internal enum GlassColorScheme: String, Enumerable {
|
|
38
|
+
case auto
|
|
39
|
+
case light
|
|
40
|
+
case dark
|
|
41
|
+
|
|
42
|
+
func toUIUserInterfaceStyle() -> UIUserInterfaceStyle {
|
|
43
|
+
switch self {
|
|
44
|
+
case .auto:
|
|
45
|
+
return .unspecified
|
|
46
|
+
case .light:
|
|
47
|
+
return .light
|
|
48
|
+
case .dark:
|
|
49
|
+
return .dark
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
// Forked from expo-glass-effect 57.0.3 (MIT). Copyright 2022-present 650 Industries.
|
|
2
|
+
// Adds container-concentric corners; otherwise unchanged.
|
|
3
|
+
|
|
4
|
+
import ExpoModulesCore
|
|
5
|
+
import React
|
|
6
|
+
|
|
7
|
+
public final class GlassView: ExpoView {
|
|
8
|
+
private var glassEffect: Any?
|
|
9
|
+
private var glassEffectView = UIVisualEffectView()
|
|
10
|
+
// Glass effect does not work sometimes if view has not been laid out yet
|
|
11
|
+
// https://github.com/expo/expo/issues/41024#issuecomment-3867466289
|
|
12
|
+
private var isMounted = false
|
|
13
|
+
|
|
14
|
+
private var glassStyle: GlassStyle?
|
|
15
|
+
private var glassTintColor: UIColor?
|
|
16
|
+
private var glassIsInteractive: Bool?
|
|
17
|
+
private var glassColorScheme: GlassColorScheme?
|
|
18
|
+
|
|
19
|
+
private var radius: CGFloat?
|
|
20
|
+
private var bottomLeftRadius: CGFloat?
|
|
21
|
+
private var bottomRightRadius: CGFloat?
|
|
22
|
+
private var topLeftRadius: CGFloat?
|
|
23
|
+
private var topRightRadius: CGFloat?
|
|
24
|
+
|
|
25
|
+
private var bottomStartRadius: CGFloat?
|
|
26
|
+
private var bottomEndRadius: CGFloat?
|
|
27
|
+
private var topStartRadius: CGFloat?
|
|
28
|
+
private var topEndRadius: CGFloat?
|
|
29
|
+
|
|
30
|
+
private var concentricCorners = false
|
|
31
|
+
private var concentricMinimumRadius: CGFloat?
|
|
32
|
+
|
|
33
|
+
public required init(appContext: AppContext? = nil) {
|
|
34
|
+
super.init(appContext: appContext)
|
|
35
|
+
|
|
36
|
+
glassEffectView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
|
37
|
+
|
|
38
|
+
addSubview(glassEffectView)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// UIGlassEffect initialiser is crashing for iOS 26 beta versions for some reason, so we need to check if it's available at runtime
|
|
42
|
+
// https://github.com/expo/expo/issues/40911
|
|
43
|
+
private func isGlassEffectAvailable() -> Bool {
|
|
44
|
+
#if compiler(>=6.2)
|
|
45
|
+
if #available(iOS 26.0, tvOS 26.0, macOS 26.0, *) {
|
|
46
|
+
guard let glassEffectClass = NSClassFromString("UIGlassEffect") as? NSObject.Type else {
|
|
47
|
+
return false
|
|
48
|
+
}
|
|
49
|
+
let respondsToSelector = glassEffectClass.responds(to: Selector(("effectWithStyle:")))
|
|
50
|
+
return respondsToSelector
|
|
51
|
+
}
|
|
52
|
+
#endif
|
|
53
|
+
return false
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
override public func layoutSubviews() {
|
|
57
|
+
super.layoutSubviews()
|
|
58
|
+
if !isMounted {
|
|
59
|
+
isMounted = true
|
|
60
|
+
// Clear the stale effect before re-applying so UIKit fully tears down
|
|
61
|
+
// the old UIGlassEffect, otherwise re-assigning does not render GlassView correctly.
|
|
62
|
+
// https://github.com/expo/expo/issues/43732
|
|
63
|
+
glassEffectView.effect = UIVisualEffect()
|
|
64
|
+
updateEffect()
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
func updateBorderRadius() {
|
|
69
|
+
guard isGlassEffectAvailable() else {
|
|
70
|
+
return
|
|
71
|
+
}
|
|
72
|
+
if #available(iOS 26.0, tvOS 26.0, macOS 26.0, *) {
|
|
73
|
+
#if compiler(>=6.2) // Xcode 26
|
|
74
|
+
if concentricCorners {
|
|
75
|
+
// Corners follow the enclosing container (the screen, for a full-bleed
|
|
76
|
+
// view) so the radius is never guessed per device. Fixed radii below
|
|
77
|
+
// are ignored while this is on.
|
|
78
|
+
glassEffectView.cornerConfiguration = .uniformCorners(
|
|
79
|
+
radius: .containerConcentric(minimum: concentricMinimumRadius)
|
|
80
|
+
)
|
|
81
|
+
return
|
|
82
|
+
}
|
|
83
|
+
let isRTL = RCTI18nUtil.sharedInstance()?.isRTL() ?? false
|
|
84
|
+
|
|
85
|
+
let finalTopLeft: CGFloat
|
|
86
|
+
let finalTopRight: CGFloat
|
|
87
|
+
let finalBottomLeft: CGFloat
|
|
88
|
+
let finalBottomRight: CGFloat
|
|
89
|
+
|
|
90
|
+
if isRTL {
|
|
91
|
+
finalTopLeft = topLeftRadius ?? topEndRadius ?? radius ?? 0
|
|
92
|
+
finalTopRight = topRightRadius ?? topStartRadius ?? radius ?? 0
|
|
93
|
+
finalBottomLeft = bottomLeftRadius ?? bottomEndRadius ?? radius ?? 0
|
|
94
|
+
finalBottomRight = bottomRightRadius ?? bottomStartRadius ?? radius ?? 0
|
|
95
|
+
} else {
|
|
96
|
+
finalTopLeft = topLeftRadius ?? topStartRadius ?? radius ?? 0
|
|
97
|
+
finalTopRight = topRightRadius ?? topEndRadius ?? radius ?? 0
|
|
98
|
+
finalBottomLeft = bottomLeftRadius ?? bottomStartRadius ?? radius ?? 0
|
|
99
|
+
finalBottomRight = bottomRightRadius ?? bottomEndRadius ?? radius ?? 0
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
let topLeft = UICornerRadius(floatLiteral: finalTopLeft)
|
|
103
|
+
let topRight = UICornerRadius(floatLiteral: finalTopRight)
|
|
104
|
+
let bottomLeft = UICornerRadius(floatLiteral: finalBottomLeft)
|
|
105
|
+
let bottomRight = UICornerRadius(floatLiteral: finalBottomRight)
|
|
106
|
+
|
|
107
|
+
glassEffectView.cornerConfiguration = .corners(
|
|
108
|
+
topLeftRadius: topLeft,
|
|
109
|
+
topRightRadius: topRight,
|
|
110
|
+
bottomLeftRadius: bottomLeft,
|
|
111
|
+
bottomRightRadius: bottomRight
|
|
112
|
+
)
|
|
113
|
+
#endif
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
func setGlassStyle(_ config: GlassEffectStyleConfig) {
|
|
118
|
+
applyGlassStyle(config.style, animate: config.animate, animationDuration: config.animationDuration)
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
func setGlassStyle(_ style: GlassStyle) {
|
|
122
|
+
applyGlassStyle(style)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
private func applyGlassStyle(_ newStyle: GlassStyle, animate: Bool = false, animationDuration: Double? = nil) {
|
|
126
|
+
if glassStyle != newStyle {
|
|
127
|
+
glassStyle = newStyle
|
|
128
|
+
guard isGlassEffectAvailable() else {
|
|
129
|
+
return
|
|
130
|
+
}
|
|
131
|
+
if #available(iOS 26.0, tvOS 26.0, macOS 26.0, *) {
|
|
132
|
+
#if compiler(>=6.2) // Xcode 26
|
|
133
|
+
let applyEffect = {
|
|
134
|
+
if let uiStyle = newStyle.toUIGlassEffectStyle() {
|
|
135
|
+
self.glassEffect = UIGlassEffect(style: uiStyle)
|
|
136
|
+
self.updateEffect()
|
|
137
|
+
} else {
|
|
138
|
+
// setting `nil` does not work as expected, so we need to set a visual effect with no effect
|
|
139
|
+
self.glassEffectView.effect = UIVisualEffect()
|
|
140
|
+
self.glassEffect = self.glassEffectView.effect
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if animate {
|
|
145
|
+
if let duration = animationDuration {
|
|
146
|
+
UIView.animate(withDuration: duration, animations: applyEffect)
|
|
147
|
+
} else {
|
|
148
|
+
UIView.animate(animations: applyEffect)
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
applyEffect()
|
|
152
|
+
}
|
|
153
|
+
#endif
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
func setBorderRadius(_ _radius: CGFloat?) {
|
|
159
|
+
if _radius != radius {
|
|
160
|
+
radius = _radius
|
|
161
|
+
updateBorderRadius()
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
func setConcentricCorners(_ concentric: Bool) {
|
|
166
|
+
if concentric != concentricCorners {
|
|
167
|
+
concentricCorners = concentric
|
|
168
|
+
updateBorderRadius()
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
func setConcentricMinimumRadius(_ minimum: CGFloat?) {
|
|
173
|
+
if minimum != concentricMinimumRadius {
|
|
174
|
+
concentricMinimumRadius = minimum
|
|
175
|
+
updateBorderRadius()
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
func setBorderCurve(_: String?) {
|
|
180
|
+
glassEffectView.layer.cornerCurve = self.layer.cornerCurve
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
func setBorderBottomLeftRadius(_ radius: CGFloat?) {
|
|
184
|
+
if radius != bottomLeftRadius {
|
|
185
|
+
bottomLeftRadius = radius
|
|
186
|
+
updateBorderRadius()
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
func setBorderBottomRightRadius(_ radius: CGFloat?) {
|
|
191
|
+
if radius != bottomRightRadius {
|
|
192
|
+
bottomRightRadius = radius
|
|
193
|
+
updateBorderRadius()
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
func setBorderTopLeftRadius(_ radius: CGFloat?) {
|
|
198
|
+
if radius != topLeftRadius {
|
|
199
|
+
topLeftRadius = radius
|
|
200
|
+
updateBorderRadius()
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
func setBorderTopRightRadius(_ radius: CGFloat?) {
|
|
205
|
+
if radius != topRightRadius {
|
|
206
|
+
topRightRadius = radius
|
|
207
|
+
updateBorderRadius()
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
func setBorderBottomStartRadius(_ radius: CGFloat?) {
|
|
212
|
+
if radius != bottomStartRadius {
|
|
213
|
+
bottomStartRadius = radius
|
|
214
|
+
updateBorderRadius()
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
func setBorderBottomEndRadius(_ radius: CGFloat?) {
|
|
219
|
+
if radius != bottomEndRadius {
|
|
220
|
+
bottomEndRadius = radius
|
|
221
|
+
updateBorderRadius()
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
func setBorderTopStartRadius(_ radius: CGFloat?) {
|
|
226
|
+
if radius != topStartRadius {
|
|
227
|
+
topStartRadius = radius
|
|
228
|
+
updateBorderRadius()
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
func setBorderTopEndRadius(_ radius: CGFloat?) {
|
|
233
|
+
if radius != topEndRadius {
|
|
234
|
+
topEndRadius = radius
|
|
235
|
+
updateBorderRadius()
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
func setTintColor(_ color: UIColor?) {
|
|
240
|
+
if color != glassTintColor {
|
|
241
|
+
glassTintColor = color
|
|
242
|
+
updateEffect()
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
func setInteractive(_ interactive: Bool) {
|
|
247
|
+
if interactive != glassIsInteractive {
|
|
248
|
+
glassIsInteractive = interactive
|
|
249
|
+
// Changing isInteractive requires cleaning of previous GlassEffect
|
|
250
|
+
glassEffectView.effect = UIVisualEffect()
|
|
251
|
+
updateEffect()
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
func setColorScheme(_ colorScheme: GlassColorScheme) {
|
|
256
|
+
if glassColorScheme != colorScheme {
|
|
257
|
+
glassColorScheme = colorScheme
|
|
258
|
+
updateEffect()
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
public override func didMoveToWindow() {
|
|
263
|
+
super.didMoveToWindow()
|
|
264
|
+
if self.window == nil {
|
|
265
|
+
isMounted = false
|
|
266
|
+
} else {
|
|
267
|
+
// https://github.com/expo/expo/issues/43732
|
|
268
|
+
// UIGlassEffect must be created during layoutSubviews; layoutSubviews may
|
|
269
|
+
// not fire on re-entry if the geometry hasn't changed, so request a pass.
|
|
270
|
+
setNeedsLayout()
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
private func updateEffect() {
|
|
275
|
+
if !isMounted {
|
|
276
|
+
return
|
|
277
|
+
}
|
|
278
|
+
guard isGlassEffectAvailable() else {
|
|
279
|
+
return
|
|
280
|
+
}
|
|
281
|
+
if #available(iOS 26.0, tvOS 26.0, macOS 26.0, *) {
|
|
282
|
+
#if compiler(>=6.2) // Xcode 26
|
|
283
|
+
if let effect = glassEffect as? UIGlassEffect {
|
|
284
|
+
effect.tintColor = glassTintColor
|
|
285
|
+
effect.isInteractive = glassIsInteractive ?? false
|
|
286
|
+
if let colorScheme = glassColorScheme {
|
|
287
|
+
glassEffectView.overrideUserInterfaceStyle = colorScheme.toUIUserInterfaceStyle()
|
|
288
|
+
}
|
|
289
|
+
// we need to set the effect again or it has no effect!
|
|
290
|
+
glassEffectView.effect = effect
|
|
291
|
+
updateBorderRadius()
|
|
292
|
+
setBorderCurve(nil)
|
|
293
|
+
}
|
|
294
|
+
#endif
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
public override func mountChildComponentView(_ childComponentView: UIView, index: Int) {
|
|
299
|
+
glassEffectView.contentView.insertSubview(childComponentView, at: index)
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
public override func unmountChildComponentView(_ childComponentView: UIView, index: Int) {
|
|
303
|
+
childComponentView.removeFromSuperview()
|
|
304
|
+
}
|
|
305
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect-rn",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "React Native bindings for @funkit/connect. Re-exports the headless @funkit/connect-core logic; the RN platform halves (Restyle theme, WebView Swapped transport, Transfer/Swapped screens, logging) land in later releases.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
|
+
"ios",
|
|
8
|
+
"expo-module.config.json",
|
|
7
9
|
"CHANGELOG.md"
|
|
8
10
|
],
|
|
9
11
|
"type": "module",
|
|
@@ -35,24 +37,28 @@
|
|
|
35
37
|
"author": "https://fun.xyz/",
|
|
36
38
|
"license": "MIT",
|
|
37
39
|
"dependencies": {
|
|
38
|
-
"@moonpay/platform-sdk-react-native": "1.
|
|
40
|
+
"@moonpay/platform-sdk-react-native": "1.18.0",
|
|
39
41
|
"@shopify/restyle": "^2.4.5",
|
|
40
42
|
"@tanstack/react-form": "1.33.5",
|
|
41
43
|
"@transak/ui-components-core": "0.5.0",
|
|
42
44
|
"colord": "2.10.0",
|
|
43
45
|
"libphonenumber-js": "1.13.6",
|
|
44
46
|
"react-i18next": "12.3.1",
|
|
45
|
-
"@funkit/api-base": "8.
|
|
46
|
-
"@funkit/
|
|
47
|
-
"@funkit/
|
|
47
|
+
"@funkit/api-base": "8.5.0",
|
|
48
|
+
"@funkit/chains": "2.4.0",
|
|
49
|
+
"@funkit/connect-core": "8.3.0"
|
|
48
50
|
},
|
|
49
51
|
"peerDependencies": {
|
|
50
52
|
"@gorhom/bottom-sheet": ">=5",
|
|
51
53
|
"@react-native-async-storage/async-storage": ">=1.23.1",
|
|
52
54
|
"@react-native-clipboard/clipboard": ">=1.13.0",
|
|
53
55
|
"@react-native-community/datetimepicker": ">=8",
|
|
56
|
+
"@solana/web3.js": ">=1.98.0",
|
|
54
57
|
"@statsig/react-bindings": ">=3.25",
|
|
58
|
+
"@stripe/stripe-react-native": ">=0.76.0 <1",
|
|
55
59
|
"@tanstack/react-query": ">=5.0.0",
|
|
60
|
+
"expo": ">=52",
|
|
61
|
+
"expo-blur": ">=14",
|
|
56
62
|
"i18next": ">=23",
|
|
57
63
|
"react": ">=18",
|
|
58
64
|
"react-native": ">=0.74",
|
|
@@ -71,9 +77,12 @@
|
|
|
71
77
|
"@react-native-clipboard/clipboard": "1.16.3",
|
|
72
78
|
"@statsig/react-bindings": "3.25.4",
|
|
73
79
|
"@storybook/react-native-web-vite": "^10.4.6",
|
|
80
|
+
"@stripe/stripe-react-native": "0.76.0",
|
|
74
81
|
"@tanstack/react-query": "5.76.1",
|
|
75
82
|
"@types/react": "^19.2.2",
|
|
76
83
|
"@types/react-dom": "^19.0.0",
|
|
84
|
+
"expo": "~57.0.21",
|
|
85
|
+
"expo-blur": "~57.0.2",
|
|
77
86
|
"i18next": "25.6.2",
|
|
78
87
|
"react": "^19.0.0",
|
|
79
88
|
"react-dom": "^19.0.0",
|
|
@@ -91,7 +100,8 @@
|
|
|
91
100
|
"tsc-alias": "1.8.16",
|
|
92
101
|
"viem": ">=2.22.14",
|
|
93
102
|
"vite": "^6.4.2",
|
|
94
|
-
"vitest": "^4.1.6"
|
|
103
|
+
"vitest": "^4.1.6",
|
|
104
|
+
"@funkit/fun-relay": "3.1.0"
|
|
95
105
|
},
|
|
96
106
|
"repository": {
|
|
97
107
|
"type": "git",
|
|
@@ -106,6 +116,12 @@
|
|
|
106
116
|
"@react-native-community/datetimepicker": {
|
|
107
117
|
"optional": true
|
|
108
118
|
},
|
|
119
|
+
"@solana/web3.js": {
|
|
120
|
+
"optional": true
|
|
121
|
+
},
|
|
122
|
+
"@stripe/stripe-react-native": {
|
|
123
|
+
"optional": true
|
|
124
|
+
},
|
|
109
125
|
"react-native-haptic-feedback": {
|
|
110
126
|
"optional": true
|
|
111
127
|
}
|
|
@@ -114,7 +130,7 @@
|
|
|
114
130
|
"build": "node build.js && pnpm typecheck",
|
|
115
131
|
"build:watch": "node build.js --watch",
|
|
116
132
|
"dev": "pnpm build:watch & pnpm typegen:watch",
|
|
117
|
-
"prebuild": "pnpm typegen",
|
|
133
|
+
"prebuild": "rm -rf dist && pnpm typegen",
|
|
118
134
|
"typecheck": "pnpm tsc --noEmit",
|
|
119
135
|
"typegen": "tsc --project tsconfig.build.json --emitDeclarationOnly && tsc-alias",
|
|
120
136
|
"typegen:watch": "tsc --project tsconfig.build.json --emitDeclarationOnly --watch & tsc-alias --project tsconfig.build.json --watch",
|