Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
dtroupe-plaid committed Jun 26, 2024
1 parent ff957a6 commit 4bf3c7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
4 changes: 2 additions & 2 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 1 addition & 16 deletions example/src/Screens/PlaidLinkScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() !== '') {
Expand Down Expand Up @@ -68,8 +67,6 @@ export function PlaidLinkScreen() {
const [text, onChangeText] = React.useState('');
const [disabled, setDisabled] = React.useState(true);

let phoneNumber: string | undefined = '14155550015';

return (
<>
<TextInput
Expand Down Expand Up @@ -100,18 +97,6 @@ export function PlaidLinkScreen() {
}}>
<Text style={styles.button}>Open Link</Text>
</TouchableOpacity>
<TouchableOpacity
disabled={disabled}
style={disabled ? styles.disabledButton : styles.button}
onPress={() => {
if (phoneNumber) {
const data: SubmissionData = {phoneNumber: phoneNumber};
console.log('Submitting phone number: ' + phoneNumber);
submit(data);
}
}}>
<Text style={styles.button}>Submit Phone Number</Text>
</TouchableOpacity>
</>
);
}

0 comments on commit 4bf3c7f

Please sign in to comment.