Skip to content

jamdotdev/expo-jam-log

Repository files navigation

expo-jam-log

A React Native module that lets you send log events to Jam for iOS so that they can be associated with your Jam.

Usage

import ExpoJamLog, { Level } from "expo-jam-log";

ExpoJamLog.log("Hello world!", level: Level.Debug);

Also supports Level.Info, Level.Warn and Level.Error.

Automatic Logging

ExpoJamLog can be configured to automatically log console events to Jam. This is configured by calling bootstrap:

ExpoJamLog.bootstrap();

console.debug("Hello world!");

Installation

expo-jam-log is a native module and is not available in Expo Go.

Expo projects

To use this module in an Expo project:

npx expo install expo-jam-log
npx expo prebuild

Refer to Using libraries that include native code for detailed installation instructions.

Bare React Native projects

For bare React Native projects, you must ensure that you have installed and configured the expo package before continuing.

Add the package to your npm dependencies

npm install expo-jam-log

Configure for iOS

Run npx pod-install after installing the npm package.

About

A React Native module that lets you send log events to Jam for iOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published