React Native SDK for Oko — an embedded wallet powered by MPC threshold signatures. Uses the OS browser (ASWebAuthenticationSession on iOS, Chrome Custom Tabs on Android) for authentication and signing instead of a WebView.
npm install @oko-wallet/oko-sdk-core-react-native| Package | Version | Required |
|---|---|---|
react |
>=18 | Yes |
react-native |
>=0.70 | Yes |
@react-native-async-storage/async-storage |
>=1.17 | Yes |
react-native-get-random-values |
>=1 | Yes |
expo-web-browser |
>=14 | No (Expo projects) |
react-native-inappbrowser-reborn |
>=3 | No (Bare RN projects) |
One of expo-web-browser or react-native-inappbrowser-reborn is required.
import { OkoWalletProvider, useOkoWallet } from "@oko-wallet/oko-sdk-core-react-native";
function App() {
return (
<OkoWalletProvider apiKey="your-api-key">
<SignIn />
</OkoWalletProvider>
);
}
function SignIn() {
const wallet = useOkoWallet();
const handleSignIn = async () => {
await wallet.signIn("google");
const info = await wallet.getWalletInfo();
console.log("Signed in:", info?.email);
};
return <Button title="Sign In" onPress={handleSignIn} />;
}The chain SDKs work with the RN wallet instance:
npm install @oko-wallet/oko-sdk-eth # Ethereum / EVM
npm install @oko-wallet/oko-sdk-cosmos # Cosmos
npm install @oko-wallet/oko-sdk-svm # Solanaimport { useOkoWallet } from "@oko-wallet/oko-sdk-core-react-native";
import { OkoEthWallet } from "@oko-wallet/oko-sdk-eth";
const wallet = useOkoWallet();
const eth = new OkoEthWallet(wallet);For the complete setup guide, platform configuration, and API reference: