Quick Start

Get started with BlockFact in 5 minutes

1. Install the SDK

npm install @blockfact/react-native-facti-pro

2. Wrap Your App

import { BlockFactProvider } from '@blockfact/react-native-facti-pro';

function App() {
  return (
    <BlockFactProvider>
      <YourApp />
    </BlockFactProvider>
  );
}

3. Create a Wallet

import { useBlockFact } from '@blockfact/react-native-facti-pro';

function WalletScreen() {
  const { wallet, createWallet, hasWallet } = useBlockFact();

  if (!hasWallet) {
    return <Button title="Create Wallet" onPress={createWallet} />;
  }

  return <Text>Wallet: {wallet.address}</Text>;
}

4. Register Content

import { useBlockFact } from '@blockfact/react-native-facti-pro';

function CameraScreen() {
  const { registerContent } = useBlockFact();

  const handleCapture = async (photo) => {
    const result = await registerContent({
      imageUri: photo.uri,
      latitude: location.latitude,
      longitude: location.longitude,
      exifData: photo.exif,
      captureTimestamp: new Date().toISOString()
    });

    console.log('Registered:', result.factiUrl);
  };
}

✅ That's it!

Your content is now registered on the blockchain with a permanent .facti file on IPFS.

Next Steps