-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4271cd9
commit 75b5e79
Showing
12 changed files
with
116 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,32 @@ | ||
import { StyleSheet } from 'react-native' | ||
import { ThemedView } from '@/components/ThemedView' | ||
import { QuilttConnector } from '@quiltt/react-native' | ||
import type { ConnectorSDKCallbackMetadata } from '@quiltt/react-native' | ||
import { router } from 'expo-router' | ||
import { PageView } from '@/components/PageView' | ||
|
||
const CONNECTOR_ID = process.env.EXPO_PUBLIC_CONNECTOR_ID | ||
const HTTPS_APP_LINK = process.env.EXPO_PUBLIC_HTTPS_APP_LINK | ||
const INSTITUION_SEARCH_TERM = process.env.EXPO_PUBLIC_INSTITUION_SEARCH_TERM | ||
|
||
export default function ExplorerScreen() { | ||
const navigateBack = () => { | ||
router.canGoBack() ? router.back() : router.push('(tabs)') | ||
} | ||
|
||
return ( | ||
<QuilttConnector | ||
connectorId={CONNECTOR_ID!} | ||
oauthRedirectUrl={HTTPS_APP_LINK!} | ||
institution={INSTITUION_SEARCH_TERM} | ||
onExitSuccess={(metadata: ConnectorSDKCallbackMetadata) => { | ||
console.log(metadata.connectionId) | ||
router.navigate('/index') | ||
navigateBack() | ||
}} | ||
onExitAbort={() => { | ||
navigateBack() | ||
}} | ||
onExitAbort={() => router.navigate('/index')} | ||
onExitError={(metadata: ConnectorSDKCallbackMetadata) => { | ||
console.log(metadata.connectorId) | ||
router.navigate('/index') | ||
navigateBack() | ||
}} | ||
/> | ||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
gap: 8, | ||
marginBottom: 8, | ||
minHeight: '100%', | ||
width: '100%', | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+2.15 KB
(170%)
examples/react-native-expo/assets/images/quiltt-logo-partial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters