Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update testapp reactnative version and optimize workflows #254

Merged
merged 21 commits into from
Jun 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix command exports
  • Loading branch information
NMGuner committed May 20, 2024
commit e8eafef3eea6395649f4af0be38a4b2393a79eaa
2 changes: 1 addition & 1 deletion src/KlarnaCheckoutView.tsx
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import type {
import type { KlarnaProductEvent } from './types/common/KlarnaProductEvent';
import type { KlarnaMobileSDKError } from './types/common/KlarnaMobileSDKError';
import RNKlarnaCheckoutView, {
RNKlarnaCheckoutViewCommands,
Commands as RNKlarnaCheckoutViewCommands,
type RNKlarnaCheckoutViewProps,
} from './specs/KlarnaCheckoutViewNativeComponent';

2 changes: 1 addition & 1 deletion src/KlarnaPaymentView.tsx
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import type {
ViewStyle,
} from 'react-native';
import RNKlarnaPaymentView, {
RNKlarnaPaymentViewCommands,
Commands as RNKlarnaPaymentViewCommands,
type RNKlarnaPaymentViewProps,
} from './specs/KlarnaPaymentViewNativeComponent';

2 changes: 1 addition & 1 deletion src/KlarnaStandaloneWebView.tsx
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import type {
ViewStyle,
} from 'react-native';
import RNKlarnaStandaloneWebView, {
RNKlarnaStandaloneWebViewCommands,
Commands as RNKlarnaStandaloneWebViewCommands,
type RNKlarnaStandaloneWebViewProps,
} from './specs/KlarnaStandaloneWebViewNativeComponent';
import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
2 changes: 1 addition & 1 deletion src/specs/KlarnaCheckoutViewNativeComponent.ts
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ interface RNKlarnaCheckoutViewNativeCommands {
) => void;
}

export const RNKlarnaCheckoutViewCommands: RNKlarnaCheckoutViewNativeCommands =
export const Commands: RNKlarnaCheckoutViewNativeCommands =
codegenNativeCommands<RNKlarnaCheckoutViewNativeCommands>({
supportedCommands: ['setSnippet', 'suspend', 'resume'],
});
2 changes: 1 addition & 1 deletion src/specs/KlarnaPaymentViewNativeComponent.ts
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@ interface RNKlarnaPaymentViewNativeCommands {
) => void;
}

export const RNKlarnaPaymentViewCommands: RNKlarnaPaymentViewNativeCommands =
export const Commands: RNKlarnaPaymentViewNativeCommands =
codegenNativeCommands<RNKlarnaPaymentViewNativeCommands>({
supportedCommands: [
'initialize',
2 changes: 1 addition & 1 deletion src/specs/KlarnaStandaloneWebViewNativeComponent.ts
Original file line number Diff line number Diff line change
@@ -85,7 +85,7 @@ interface RNKlarnaStandaloneWebViewNativeCommands {
) => void;
}

export const RNKlarnaStandaloneWebViewCommands: RNKlarnaStandaloneWebViewNativeCommands =
export const Commands: RNKlarnaStandaloneWebViewNativeCommands =
codegenNativeCommands<RNKlarnaStandaloneWebViewNativeCommands>({
supportedCommands: ['load', 'goBack', 'goForward', 'reload'],
});