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

react-native-vetrix-games

v0.1.8

Published

sdk for npx vetrix

Downloads

863

Readme

react-native-vetrix-games

SDK for Vetrix Games Hub — a collection of interactive mini-games (Millionaire Hunter, Fortune Wheel, Dice, Trivia, Raffle Draw, and more) for React Native apps.

Installation

npm install react-native-vetrix-games

iOS

cd ios && pod install

The SDK depends on lottie-ios 4.x (declared in the podspec as ~> 4.0). CocoaPods resolves this automatically. If your app already uses lottie-ios or lottie-react-native, it will share the same copy — no conflicts as long as you're on lottie-ios 4.x.

Android

No extra setup required. The SDK ships with Lottie 6.6.2 by default.

Overriding the Lottie version

If your app already uses a different version of Lottie (e.g. via lottie-react-native or a direct dependency), you can override the version used by the SDK. Add this to your root build.gradle (or build.gradle.kts):

// android/build.gradle
ext {
    lottieVersion = "6.4.0" // your preferred version (must be 6.x)
}

The SDK reads rootProject.ext.lottieVersion at build time. If not set, it falls back to its built-in default (6.6.2). This follows the same pattern used for kotlinVersion, compileSdkVersion, and other overridable properties.

Note: The SDK requires Lottie 6.x APIs. Versions below 6.0.0 are not supported.

Usage

Basic

import { VetrixGamesHub } from 'react-native-vetrix-games';

export default function App() {
  return (
    <VetrixGamesHub
      apiUrl="https://your-api.example.com/service"
      externalToken={userAuthToken}
    />
  );
}

With all options

import { VetrixGamesHub } from 'react-native-vetrix-games';

export default function App() {
  return (
    <VetrixGamesHub
      apiUrl="https://your-api.example.com/service"
      externalToken={userAuthToken}
      onExit={() => navigation.goBack()}
      onError={(error) => console.error('Session error:', error)}
      theme={{
        colors: {
          primary: '#6C63FF',
          accent: '#FFD700',
          background: '#0A0A2E',
        },
      }}
    />
  );
}

Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | apiUrl | string | Yes | API endpoint URL. | | externalToken | string | Yes | Auth token from the host app, used to initialize a player session. | | onExit | () => void | No | Called when the user taps "Logout" on the Profile screen. Use this to navigate away from the hub. | | onError | (error: Error \| string) => void | No | Called when session initialization fails. Receives the error. | | theme | Partial<VetrixTheme> | No | Theme color overrides. |

Note: Device analytics (OS, version, screen resolution, timezone, etc.) are collected automatically by the SDK — no configuration needed.

VetrixTheme

{
  colors: Partial<{
    background: string;
    surface: string;
    primary: string;
    secondary: string;
    accent: string;
    success: string;
    error: string;
    warning: string;
    textPrimary: string;
    textSecondary: string;
    textMuted: string;
    border: string;
    gold: string;
  }>;
}