diff --git a/example/package-lock.json b/example/package-lock.json index 701ba881..cdff7051 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -14,7 +14,7 @@ "react": "18.2.0", "react-native": "0.73.6", "react-native-gesture-handler": "^2.12.1", - "react-native-plaid-link-sdk": "^11.10.3", + "react-native-plaid-link-sdk": "file:.yalc/react-native-plaid-link-sdk", "react-native-safe-area-context": "^4.9.0", "react-native-screens": "^3.29.0" }, @@ -40,7 +40,7 @@ } }, ".yalc/react-native-plaid-link-sdk": { - "version": "11.10.3", + "version": "11.11.0", "license": "MIT", "peerDependencies": { "react": "*", diff --git a/example/src/Screens/PlaidLinkScreen.tsx b/example/src/Screens/PlaidLinkScreen.tsx index 7e5d1075..ff49cec3 100644 --- a/example/src/Screens/PlaidLinkScreen.tsx +++ b/example/src/Screens/PlaidLinkScreen.tsx @@ -12,10 +12,9 @@ import { usePlaidEmitter, LinkIOSPresentationStyle, LinkTokenConfiguration, - SubmissionData, } from 'react-native-plaid-link-sdk'; -import {create, open, submit} from 'react-native-plaid-link-sdk'; +import {create, open} from 'react-native-plaid-link-sdk'; function isValidString(str: string): boolean { if (str && str.trim() !== '') { @@ -68,8 +67,6 @@ export function PlaidLinkScreen() { const [text, onChangeText] = React.useState(''); const [disabled, setDisabled] = React.useState(true); - let phoneNumber: string | undefined = '14155550015'; - return ( <> Open Link - { - if (phoneNumber) { - const data: SubmissionData = {phoneNumber: phoneNumber}; - console.log('Submitting phone number: ' + phoneNumber); - submit(data); - } - }}> - Submit Phone Number - ); }