Skip to content

Make-Starknet-Mainstream/starknet-react-native-sdk

Repository files navigation

Starknet React Native SDK

A powerful and easy-to-use React Native SDK for building mobile applications on Starknet. This SDK provides a seamless integration between React Native applications and the Starknet blockchain.

Features

  • 🚀 Built with TypeScript for type safety
  • 📱 React Native & Expo compatible
  • 🔒 Secure transaction signing
  • 🌐 Multiple network support (Mainnet, Testnet, Local)
  • 🎯 Simple and intuitive API
  • 🛠 Comprehensive hooks for React Native
  • 📦 Zero-config installation with Expo
  • 📝 Extensive documentation and examples

Installation

npm install @make-starknet-mainstream/starknet-react-native-sdk
# or
yarn add @make-starknet-mainstream/starknet-react-native-sdk

Quick Start

import { useStarknet, useContract, useAccount } from '@make-starknet-mainstream/starknet-react-native-sdk';

function App() {
  const { connect, disconnect, isConnected } = useStarknet();
  const { account } = useAccount();

  return (
    <View>
      {!isConnected ? (
        <Button onPress={connect} title="Connect to Starknet" />
      ) : (
        <Text>Connected: {account.address}</Text>
      )}
    </View>
  );
}

Documentation

For detailed documentation, visit our documentation site.

Examples

Check out our example applications in the examples directory:

  • Basic Wallet App
  • NFT Gallery
  • DeFi Dashboard

Contributing

We welcome contributions! Please see our Contributing Guide for details.

Security

If you discover a security vulnerability, please follow our Security Policy.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

About

Starknet React Native SDK.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published