The easiest and most powerful way to integrate Turnkey's Embedded Wallets into your React Native applications.
npm install @turnkey/react-native-wallet-kitThe easiest and most powerful way to integrate Turnkey's Embedded Wallets into your React Native applications.
To learn how to setup your Turnkey organization and configure the Auth Proxy, check out our Getting Started guide for React Native.
You can use @turnkey/react-native-wallet-kit in any React Native app (Expo or bare).
``bash`
npm install @turnkey/react-native-wallet-kit
This package requires the following peer dependencies:
`bash`
npm install react react-native react-native-passkey react-native-inappbrowser-reborn react-native-gesture-handler react-native-safe-area-context react-native-svg @react-native-async-storage/async-storage react-native-get-random-values react-native-url-polyfill buffer
`tsx
import { TurnkeyProvider } from "@turnkey/react-native-wallet-kit";
export default function App() {
return (
organizationId: "your-organization-id",
authProxyConfigId: "your-auth-proxy-config-id",
}}
>
{/ Your app content /}
);
}
`
> If you're using Expo, ensure polyfills are imported early (e.g., in your root layout) and Buffer is defined:`
>
> tsx`
> import "react-native-get-random-values";
> import "react-native-url-polyfill/auto";
> import { Buffer } from "buffer";
> (global as any).Buffer = (global as any).Buffer || Buffer;
>
`tsx
import { useTurnkey, AuthState } from "@turnkey/react-native-wallet-kit";
function LoginButton() {
const { loginWithPasskey, loginWithOtp, handleGoogleOauth } = useTurnkey();
return (
<>
This package is part of the Turnkey SDK monorepo. To build:
`bash`
pnpm build
To run tests:
`bash``
pnpm test
MIT