Deprecation Notice: This package is being deprecated in SDK v5.x.x and is no longer supported for new integrations.
React Native compatible signer implementation
npm install @account-kit/react-native-signerThis package requires several packages containing native modules to be installed in your project. Check out their docs at the following links for installation instructions.
Passkeys
If using passkeys, there are iOS- and Android-specific steps to link your app to an associated domain to which the passkeys will be connected. This means hosting specific JSON files from a domain you control. For details on this, see the instructions in the react-native-passkey README.
Deep Linking
Use emails containing OTP codes (the default setting) to avoid the need for this step.
If using emails with magic links, your app needs to be configured to handle deep linking. Check out the React Native docs for more information. You will also need a way to trigger the deep link via an HTTP or HTTPS URL. This can be done in a variety of ways ranging from universal links to setting up a custom redirect server.
See the example app for usage information.
- Clone the repo
- run
yarnin the root of the repo - make changes in
rn-signer/src - cd into
account-kit/rn-signer/example - add a
.envfile which containsAPI_KEY={alchemy_api_key}. This API Key needs to correspond to an app that has Smart Wallets enabled (https://dashboard.alchemy.com/apps/latest/services/smart-wallets). - run
yarn androidto start the example app. You will need to make sure you do the env setup here: https://reactnative.dev/docs/set-up-your-environment to be able to run the app on android
Made with create-react-native-library
| Class | Description |
|---|---|
| RNAlchemySignerSingleton | - |
| RNSignerClient | - |
| Type Alias | Description |
|---|---|
| ExportWalletParams | - |
| ExportWalletResult | - |
| RNAlchemySignerParams | - |
| RNAlchemySignerType | - |
| Function | Description |
|---|---|
| RNAlchemySigner | Factory function to create or retrieve a singleton instance of RNAlchemySigner. |