Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@trezor/connect-mobile

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trezor/connect-mobile

latest
npmnpm
Version
9.6.3
Version published
Maintainers
4
Created
Source

@trezor/connect-mobile

NPM

The @trezor/connect-mobile package provides an implementation of @trezor/connect which uses deep links to communicate with the Trezor Suite Lite app.

To run a dev version of the Suite mobile app follow the instructions in @suite-native/app

Using the Library

To use the library, you need to initialize it with the deeplinkOpen and deeplinkCallbackUrl settings.

import TrezorConnect from '@trezor/connect-mobile';

TrezorConnect.init({
    manifest: {
        email: 'developer@xyz.com',
        appName: 'Trezor Connect Example',
        appUrl: 'http://your.application.com',
    },
    deeplinkOpen: url => {
        // eslint-disable-next-line no-console
        console.log('deeplinkOpen', url);
        Linking.openURL(url);
    },
    deeplinkCallbackUrl: Linking.createURL('/connect'),
});

To receive the deep link callback, you need to add a listener which will call TrezorConnect.handleDeeplink with the deep link URL.

useEffect(() => {
    const subscription = Linking.addEventListener('url', event => {
        TrezorConnect.handleDeeplink(event.url);
    });

    return () => subscription?.remove();
}, []);

Example

The Connect mobile example shows how to use the library in a React Native + Expo app.

FAQs

Package last updated on 18 Sep 2025

Did you know?

Socket

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.

Install

Related posts