
Security News
Scaling Socket from Zero to 10,000+ Organizations
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.
@bridge-do/connect-react-native
Advanced tools
This tool is provided by Bridge Labs. Please always refer to our official documentation and website for proper implementation of our service.
The Bridge Connect React Native SDK provides an easy way to integrate Bridge's secure financial connection services into your React Native application.
Bridge Connect | Official Docs
# Using npm
npm install @bridge-do/connect-react-native
# Using yarn
yarn add @bridge-do/connect-react-native
# Using pnpm
pnpm add @bridge-do/connect-react-native
This package depends on react-native-webview. If you haven't installed it yet, you'll need to add it (You can omit this step if is already installed):
# Using npm
npm install react-native-webview
# Using yarn
yarn add react-native-webview
# Using pnpm
pnpm add react-native-webview
import { BridgeConnectProvider } from '@bridge-do/connect-react-native';
function App() {
return (
<BridgeConnectProvider applicationId="YOUR_BRIDGE_APPLICATION_ID">
{/* Your app goes here */}
</BridgeConnectProvider>
);
}
import { useBridgeConnect } from '@bridge-do/connect-react-native';
import { Button, Text, View } from 'react-native';
function ConnectButton() {
const { openConnect, connectData } = useBridgeConnect();
return (
<View>
<Button title="Connect Your Bank" onPress={openConnect} />
{connectData && (
<Text>Connected! Session ID: {connectData.sessionId}</Text>
)}
</View>
);
}
BridgeConnectProviderThe main provider component that manages the connection flow.
| Prop | Type | Required | Description |
|---|---|---|---|
applicationId | string | Yes | Your Bridge application ID from your Bridge dashboard |
children | React.ReactNode | Yes | Child components |
useBridgeConnect()A hook that provides access to the Bridge Connect functionality.
| Property | Type | Description |
|---|---|---|
openConnect | () => void | Function to open the connection modal |
closeConnect | () => void | Function to close the connection modal |
connectData | BridgeConnectData | undefined | Connection data if a connection was successful |
This package is written in TypeScript and includes type definitions. Key types include:
BridgeConnectDatainterface BridgeConnectData {
sessionId: string;
metadata: {
institution: {
id: string;
name: string;
};
accounts: Array<{
id: string;
name: string;
type: string;
lastFour: string;
balance: { current: number };
}>;
};
}
import React from 'react';
import { View, Button, Text, StyleSheet } from 'react-native';
import {
BridgeConnectProvider,
useBridgeConnect,
} from '@bridge-do/connect-react-native';
// Create a component that uses the hook
function ConnectComponent() {
const { openConnect, connectData } = useBridgeConnect();
return (
<View style={styles.container}>
<Button title="Connect Your Financial Account" onPress={openConnect} />
{connectData && (
<View style={styles.resultContainer}>
<Text style={styles.heading}>Connection Successful!</Text>
<Text>Connected to: {connectData.metadata.institution.name}</Text>
<Text>Accounts: {connectData.metadata.accounts.length}</Text>
{connectData.metadata.accounts.map((account) => (
<View key={account.id} style={styles.accountItem}>
<Text>
{account.name} ({account.type})
</Text>
<Text>Last four: **** {account.lastFour}</Text>
<Text>Balance: ${account.balance.current.toFixed(2)}</Text>
</View>
))}
</View>
)}
</View>
);
}
// Main App component with the provider
export default function App() {
return (
<BridgeConnectProvider applicationId="YOUR_BRIDGE_APPLICATION_ID">
<ConnectComponent />
</BridgeConnectProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
padding: 20,
},
resultContainer: {
marginTop: 20,
padding: 15,
backgroundColor: '#f0f0f0',
borderRadius: 8,
},
heading: {
fontSize: 18,
fontWeight: 'bold',
marginBottom: 10,
},
accountItem: {
marginTop: 10,
padding: 10,
backgroundColor: '#ffffff',
borderRadius: 5,
},
});
For a better user experience, you might want to handle different connection states:
function ConnectionFlow() {
const { openConnect, connectData } = useBridgeConnect();
const [isLoading, setIsLoading] = useState(false);
const handleConnect = () => {
setIsLoading(true);
openConnect();
};
// When connectData changes, update loading state
useEffect(() => {
if (connectData) {
setIsLoading(false);
// You can also call your API here to save the connection data
}
}, [connectData]);
return (
<View>
<Button
title={isLoading ? 'Connecting...' : 'Connect Account'}
onPress={handleConnect}
disabled={isLoading}
/>
</View>
);
}
MIT
Made with ❤️ by Bridge Labs in 🇩🇴
FAQs
Bridge Connect React Native SDK
The npm package @bridge-do/connect-react-native receives a total of 0 weekly downloads. As such, @bridge-do/connect-react-native popularity was classified as not popular.
We found that @bridge-do/connect-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.

Research
Socket Threat Research maps a rare inside look at OtterCookie’s npm-Vercel-GitHub chain, adding 197 malicious packages and evidence of North Korean operators.

Research
Socket researchers identified a malicious Chrome extension that manipulates Raydium swaps to inject an undisclosed SOL transfer, quietly routing fees to an attacker wallet.