Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dtroupe-plaid committed Aug 7, 2023
1 parent b97f09f commit 1092589
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions example/PlaidEventContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
dismissLink,
PlaidLinkProps,
usePlaidEmitter,
LinkIosPresentationStyle,
LinkIOSPresentationStyle,
} from 'react-native-plaid-link-sdk';

// Create PlaidLinkProps from the provided token string.
Expand All @@ -34,7 +34,7 @@ function makeLinkTokenProps(token: string): PlaidLinkProps {
dismissLink();
},
// MODAL or FULL_SCREEEN presentation on iOS. Defaults to MODAL.
iOSPresentationStyle: LinkIosPresentationStyle.MODAL,
iOSPresentationStyle: LinkIOSPresentationStyle.MODAL,
};
}

Expand Down
4 changes: 2 additions & 2 deletions src/PlaidLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
LinkError,
LinkEventListener,
LinkExit,
LinkIosPresentationStyle,
LinkIOSPresentationStyle,
LinkSuccess,
PlaidLinkComponentProps,
PlaidLinkProps,
Expand Down Expand Up @@ -65,7 +65,7 @@ export const openLink = async (props: PlaidLinkProps) => {
} else {
NativeModules.RNLinksdk.create(config);

let presentFullScreen = props.iOSPresentationStyle == LinkIosPresentationStyle.FULL_SCREEN
let presentFullScreen = props.iOSPresentationStyle == LinkIOSPresentationStyle.FULL_SCREEN

NativeModules.RNLinksdk.open(presentFullScreen,
(result: LinkSuccess) => {
Expand Down
8 changes: 5 additions & 3 deletions src/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,10 @@ export enum LinkEventViewName {
VERIFY_SMS = 'VERIFY_SMS',
}

// qwe comment
export enum LinkIosPresentationStyle {
/// Methods to present Link on iOS.
/// FULL_SCREEN is the converts to UIModalPresentationOverFullScreen on the native side.
/// MODAL will use the default presentation style for iOS which is UIModalPresentationAutomatic.
export enum LinkIOSPresentationStyle {
FULL_SCREEN,
MODAL
}
Expand All @@ -525,7 +527,7 @@ export interface PlaidLinkProps {
publicKeyConfig?: LinkPublicKeyConfiguration
onSuccess: LinkSuccessListener
onExit?: LinkExitListener
iOSPresentationStyle?: LinkIosPresentationStyle
iOSPresentationStyle?: LinkIOSPresentationStyle
onPress?(): any
}

Expand Down

0 comments on commit 1092589

Please sign in to comment.