npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mansteve/shuttle-react-native

v1.0.0

Published

React Native/Expo bindings for Shuttle - Mobile wallet connections for Cosmos dApps

Readme

@mansteve/shuttle-react-native

npm version License: MIT

React Native/Expo bindings for Shuttle - Mobile wallet connections for Cosmos dApps.

Based on Shuttle by Delphi Labs
This package extends Shuttle to provide React Native and Expo support for mobile wallet connections.

Author: Stefanos Chatzakis
Repository: https://github.com/StefChatz/shuttle

Installation

npm install @delphi-labs/shuttle @mansteve/shuttle-react-native @react-native-async-storage/async-storage

or with yarn:

yarn add @delphi-labs/shuttle @mansteve/shuttle-react-native @react-native-async-storage/async-storage

or with pnpm:

pnpm add @delphi-labs/shuttle @mansteve/shuttle-react-native @react-native-async-storage/async-storage

Quick Start

1. Setup WalletConnect Project ID

Get your WalletConnect Project ID from WalletConnect Cloud.

2. Configure Networks and Providers

import { Network, KeplrMobileProvider, LeapCosmosMobileProvider } from "@delphi-labs/shuttle";

const TERRA_TESTNET: Network = {
  name: "Terra 2 Testnet",
  chainId: "pisco-1",
  chainPrefix: "terra",
  rpc: "https://multichain-nodes.astroport.fi/pisco-1/rpc/",
  rest: "https://multichain-nodes.astroport.fi/pisco-1/lcd/",
  bip44: { coinType: 330 },
  defaultCurrency: {
    coinDenom: "LUNA",
    coinMinimalDenom: "uluna",
    coinDecimals: 6,
  },
  gasPrice: "0.015uluna",
};

const WALLET_CONNECT_PROJECT_ID = "YOUR_PROJECT_ID";

const mobileProviders = [
  new KeplrMobileProvider({
    networks: [TERRA_TESTNET],
    walletConnectProjectId: WALLET_CONNECT_PROJECT_ID,
  }),
  new LeapCosmosMobileProvider({
    networks: [TERRA_TESTNET],
    walletConnectProjectId: WALLET_CONNECT_PROJECT_ID,
  }),
];

3. Wrap Your App with ShuttleProvider

import { ShuttleProvider } from "@mansteve/shuttle-react-native";

function App() {
  return (
    <ShuttleProvider
      mobileProviders={mobileProviders}
      walletConnectProjectId={WALLET_CONNECT_PROJECT_ID}
      persistent={true}
      persistentKey="my-app-shuttle"
      withLogging={true}
    >
      <YourApp />
    </ShuttleProvider>
  );
}

4. Connect to Wallets

import { useShuttle } from "@mansteve/shuttle-react-native";
import { Linking } from "react-native";
import QRCode from "react-native-qrcode-svg";

function WalletConnectButton() {
  const { mobileConnect, wallets, disconnect, openUrl } = useShuttle();
  const [qrCodeUri, setQrCodeUri] = useState("");

  const handleConnect = async () => {
    const result = await mobileConnect({
      mobileProviderId: "mobile-keplr",
      chainId: "pisco-1",
      callback: (wallet) => {
        console.log("Connected:", wallet);
      },
    });

    // Show QR code for scanning
    setQrCodeUri(result.qrCodeUrl);

    // Or directly open the wallet app
    await openUrl(result.androidUrl); // or result.iosUrl for iOS
  };

  if (wallets.length > 0) {
    return <Button title="Disconnect" onPress={() => disconnect()} />;
  }

  return (
    <>
      <Button title="Connect Wallet" onPress={handleConnect} />
      {qrCodeUri && <QRCode value={qrCodeUri} size={250} />}
    </>
  );
}

5. Sign and Broadcast Transactions

import { useShuttle } from "@mansteve/shuttle-react-native";
import { MsgSend } from "@delphi-labs/shuttle";

function SendTokens() {
  const { broadcast, recentWallet } = useShuttle();

  const handleSend = async () => {
    if (!recentWallet) return;

    const result = await broadcast({
      messages: [
        new MsgSend({
          fromAddress: recentWallet.account.address,
          toAddress: "terra1...",
          amount: [{ denom: "uluna", amount: "1000000" }],
        }),
      ],
      wallet: recentWallet,
    });

    console.log("Transaction hash:", result.hash);
  };

  return <Button title="Send Tokens" onPress={handleSend} />;
}

API Reference

ShuttleProvider Props

  • mobileProviders: Array of mobile wallet providers
  • walletConnectProjectId: Your WalletConnect project ID
  • persistent: Enable persistent wallet connections (default: false)
  • persistentKey: Key for AsyncStorage (default: "shuttle")
  • withLogging: Enable console logging (default: false)
  • store: Optional custom Zustand store

useShuttle Hook

Returns an object with:

  • mobileProviders: Available mobile wallet providers
  • mobileConnect({ mobileProviderId, chainId, callback }): Connect to a mobile wallet
  • wallets: Array of connected wallets
  • recentWallet: Most recently used wallet
  • getWallets(filters?): Get wallets with optional filters
  • disconnect(filters?): Disconnect wallets
  • disconnectWallet(wallet): Disconnect a specific wallet
  • simulate({ messages, wallet?, overrides? }): Simulate a transaction
  • broadcast({ messages, wallet?, fee?, memo?, overrides? }): Broadcast a transaction
  • sign({ messages, wallet?, fee?, memo?, overrides? }): Sign a transaction
  • signArbitrary({ wallet?, data }): Sign arbitrary data
  • verifyArbitrary({ wallet?, data, signResult }): Verify signed data
  • openUrl(url): Open a URL (useful for deep links to wallet apps)

Supported Wallets

  • Keplr Mobile (via WalletConnect)
  • Leap Cosmos Mobile (via WalletConnect)
  • Cosmostation Mobile (via WalletConnect)
  • Metamask Mobile (via WalletConnect)
  • Trust Wallet Mobile (via WalletConnect)

Example

Check out the complete example app at examples/shuttle-port-expo in the repository.

Deep Linking

To handle wallet callbacks, configure deep linking in your app:

  1. Add a custom URL scheme in app.json:
{
  "expo": {
    "scheme": "myapp"
  }
}
  1. Configure Android intent filters and iOS URL schemes as needed.

License

MIT