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 🙏

© 2025 – Pkg Stats / Ryan Hefner

expo-iomb-library

v0.2.1

Published

React Native wrapper for native IOMb SDKs

Downloads

7

Readme

Expo IOMB Library

A React Native wrapper for native IOMb SDKs, providing seamless integration with the IOMb(Census measurement system) analytics and tracking functionality in your Expo/React Native applications.

Requirements

  • iOS: minSdkVersion 15.1
  • Android: minSdkVersion 21

Note: The native IOMb libraries are not public and will be provided via email from INFOnline Support.

Features

  • 📊 Session configuration and management
  • 📱 View event tracking
  • 🔍 Debug level control

Installation

In Managed Expo Projects

npx expo install expo-iomb-library expo-build-properties

Configuration

iOS and Android Setup

Add the following to your app.json:

{
  "expo": {
    "plugins": [
      [
        "expo-build-properties",
        {
          "android": {
            "extraMavenRepos": [
              "https://repo.infonline.de/api/v4/projects/5/packages/maven"
            ]
          },
          "ios": {
            "extraPods": [
              {
                "name": "IOMbLibrary",
                "git": "https://repo.infonline.de/iom/base/sensors/app/ios.git"
              }
            ]
          }
        }
      ]
    ]
  }
}

Usage

Initialize Session

import ExpoIombLibrary from "expo-iomb-library";
import { Platform } from "react-native";

const isIos = Platform.OS === "ios";

const baseURL = isIos ? "<yourIosBaseURL>" : "<yourAndroidBaseURL>";

const offerIdentifier = isIos
  ? "<yourIosIdentifier>"
  : "<yourAndroidIdentifier>";

// Configure and start session
await ExpoIombLibrary.sessionConfiguration({
  baseURL,
  offerIdentifier,
});

Track View Events

import { IOMBViewEvent } from "expo-iomb-library";

await ExpoIombLibrary.logViewEvent({
  type: IOMBViewEvent.APPEARED,
  category: "your-category",
  comment: "your-optional-comment",
});

Set Debug Level

import { IOMBDebugLevel } from "expo-iomb-library";
import { Platform } from "react-native";

if (Platform.OS === "ios") {
  await ExpoIombLibrary.setDebugLogLevel(IOMBDebugLevel.TRACE);
} else {
  await ExpoIombLibrary.setDebugModeEnabled(true);
}

Cleanup

await ExpoIombLibrary.terminateSession();

API Reference

Session Configuration

  • sessionConfiguration(payload: SessionConfigPayload): Initializes the IOMB session
    • payload.baseURL: Base URL for the API
    • payload.offerIdentifier: Identifier for the offer
    • payload.hybridIdentifier: Optional hybrid identifier

Session Cleanup

  • terminateSession(): Terminates the current IOMB session and cleans up resources

Log View Event

  • logViewEvent(payload: LogViewEventPayload): Logs view-related events
    • payload.type: One of IOMBViewEvent.APPEARED, REFRESHED, or DISAPPEARED
    • payload.category: Category of the view
    • payload.comment: Optional comment

Set Debug Log Level (iOS)

  • setDebugLogLevel(level: IOMBDebugLevel): Sets debug logging level
    • level: One of OFF, ERROR, WARNING, INFO, TRACE

Set Debug Mode (Android)

  • setDebugModeEnabled(enable: boolean): Sets debug mode
    • enable: boolean value to enable or disable debug mode

Types

enum IOMBViewEvent {
  APPEARED = "appeared",
  REFRESHED = "refreshed",
  DISAPPEARED = "disappeared",
}

enum IOMBDebugLevel {
  OFF = "off",
  ERROR = "error",
  WARNING = "warning",
  INFO = "info",
  TRACE = "trace",
}

interface SessionConfigPayload {
  baseURL: string;
  offerIdentifier: string;
  hybridIdentifier?: string;
}

interface LogViewEventPayload {
  type: IOMBViewEvent;
  category: string;
  comment?: string;
}

Example

Check out the example directory for a complete working demo of all features.

Documentation References

For more detailed information about the native SDKs, refer to the official documentation:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

License

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