
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
@crossmint/client-sdk-react-native-ui
Advanced tools
> **Create chain-agnostic wallets for your React Native apps in minutes** > Supports Solana, 20+ EVM chains (Polygon, Base, etc.), with secure mobile authentication.
Create chain-agnostic wallets for your React Native apps in minutes
Supports Solana, 20+ EVM chains (Polygon, Base, etc.), with secure mobile authentication.
pnpm add @crossmint/client-sdk-react-native-ui expo-secure-store expo-web-browser
Option A: With Crossmint Authentication (Recommended)
import {
CrossmintProvider,
CrossmintAuthProvider,
CrossmintWalletProvider
} from "@crossmint/client-sdk-react-native-ui";
export default function App() {
return (
<CrossmintProvider apiKey={process.env.EXPO_PUBLIC_CROSSMINT_API_KEY}>
<CrossmintAuthProvider>
<CrossmintWalletProvider
createOnLogin={{
chain: "solana",
signer: { type: "email" }
}}
>
<MainApp />
</CrossmintWalletProvider>
</CrossmintAuthProvider>
</CrossmintProvider>
);
}
Option B: ๐ง Bring Your Own Authentication
Already have authentication? Skip Crossmint Auth and use wallets with your existing system:
๐ Complete Custom Auth Guide - Full setup with server-side examples and implementation details.
import {
CrossmintProvider,
CrossmintWalletProvider
} from "@crossmint/client-sdk-react-native-ui";
export default function App() {
return (
<CrossmintProvider apiKey={process.env.EXPO_PUBLIC_CROSSMINT_API_KEY}>
{/* No CrossmintAuthProvider needed! */}
<CrossmintWalletProvider>
<MainApp />
</CrossmintWalletProvider>
</CrossmintProvider>
);
}
The React Native SDK uses Expo's SecureStore for secure, encrypted storage of authentication tokens. This provides a platform-native secure storage solution that encrypts sensitive data on the device.
import { View, Button, Text } from "react-native";
import { useCrossmintAuth, useWallet } from "@crossmint/client-sdk-react-native-ui";
export default function MainApp() {
const { loginWithOAuth, logout, user } = useCrossmintAuth();
const { wallet, status } = useWallet();
if (!user) {
return (
<View style={{ padding: 20 }}>
<Button
title="Login with Google"
onPress={() => loginWithOAuth("google")}
/>
</View>
);
}
if (status === "loaded") {
return (
<View style={{ padding: 20 }}>
<Text>Welcome {user.email}!</Text>
<Text>Wallet: {wallet?.address}</Text>
<Button
title="Send 1 USDC"
onPress={() => wallet?.send(recipient, "usdc", "1.0")}
/>
<Button title="Logout" onPress={logout} />
</View>
);
}
return <Text>Loading wallet...</Text>;
}
const { loginWithOAuth } = useCrossmintAuth();
// Available OAuth providers
<Button title="Google" onPress={() => loginWithOAuth("google")} />
<Button title="Twitter" onPress={() => loginWithOAuth("twitter")} />
const { wallet, getOrCreateWallet } = useWallet();
// Get wallet info
const address = wallet?.address;
const balance = await wallet?.balances();
// Send tokens
const tx = await wallet?.send(recipient, "usdc", "10.5");
console.log("Transaction:", tx.explorerLink);
// For advanced use cases
const customWallet = await getOrCreateWallet({
chain: "<your-chain>",
signer: { type: "<your-signer-type>" }
});
If you need to implement a custom storage solution, you can implement the StorageProvider
interface and pass it to the CrossmintAuthProvider
:
import { CrossmintAuthProvider, type StorageProvider } from "@crossmint/client-sdk-react-native-ui";
// Implement your custom storage provider
class CustomStorage implements StorageProvider {
async get(key: string): Promise<string | undefined> {
// Your implementation
}
async set(key: string, value: string, expiresAt?: string): Promise<void> {
// Your implementation
}
async remove(key: string): Promise<void> {
// Your implementation
}
}
// Use your custom storage provider
function App() {
const customStorage = new CustomStorage();
return (
<CrossmintProvider apiKey="YOUR_API_KEY">
<CrossmintAuthProvider customStorageProvider={customStorage}>
{/* Your app content */}
</CrossmintAuthProvider>
</CrossmintProvider>
);
}
Get your API key from Crossmint Console
Add to your .env
:
EXPO_PUBLIC_CROSSMINT_API_KEY=your_api_key_here
app.json
:{
"expo": {
"scheme": "your-app-scheme"
}
}
Questions? Visit our documentation or contact our support team.
FAQs
> **Create chain-agnostic wallets for your React Native apps in minutes** > Supports Solana, 20+ EVM chains (Polygon, Base, etc.), with secure mobile authentication.
The npm package @crossmint/client-sdk-react-native-ui receives a total of 346 weekly downloads. As such, @crossmint/client-sdk-react-native-ui popularity was classified as not popular.
We found that @crossmint/client-sdk-react-native-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 0 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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptalโs GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.