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

lemnisk-react-native

v0.1.26

Published

plugin to setup the lemnisk sdk on both android and ios platform

Downloads

734

Readme

lemnisk-react-native

Lemnisk React Native Integration guide

Installation

npm install --save lemnisk-react-native

and then run the following command to update the Pods in your Project's ios directory

pod install

Note: If you are using React Native version below 0.60, then please run the following command to link the Lemnisk ReactNative SDK

react-native link lemnisk-react-native

Usage

Please import Lemnisk native module in your react-native application.

import LemniskSdk from 'lemnisk-react-native';

Now, you can log an event to Lemnisk by using the following method call in your react-native application.

Identify

The identify call lets you tie a user to their actions and record traits about them. It includes a unique User ID and any optional traits you know about the user, like their email, mobile, any other id etc.

LemniskSdk.identify('<userId>', {traits}, {otherIds})

The identify call has the following fields:

| Parameter | Type | Data Type | Description | |-----------|------|-----------|-------------| | userId | optional | String | The tokenized database ID for the user. If you don’t know who the user is yet, you can omit the userId and just record traits. | | traits | optional | Object | A dictionary of other user that you know about the user, like firstName, lastName, gender, location, address etc. | | otherIds | optional | Object | A dictionary of other user identities you know about the user, like email or mobile or any other identifier |

Example identify call:

LemniskSdk.identify('crmid1234', {
	"firstName": "John",
	"lastName": "Miller",
	"gender": "Male",
  }, {
	    "email": "[email protected]"
  })

Track

The track call lets you record any actions your users perform, along with any properties that describe the action.

LemniskSdk.identify('<event>', {properties}, {otherIds})

The track call has the following fields:

| Parameter | Type | Data Type | Description | |-----------|------|-----------|-------------| | event | optional | String | The name of the event you’re tracking. | | properties | optional | Object | A dictionary of properties for the event. If the event was 'Product View', it might have properties like productName, price and productCategory. | | otherIds | optional | Object | A dictionary of other user identities you know about the user, like email or mobile or any other identifier |

Example track call:

LemniskSdk.track('Product View', {
	"productName": "iPhone 13",
	"productCategory": "Mobiles",
	"price": "799",
	"currency": "USD",
 }, {
   	 "email": "[email protected]"
 })

Screen

The screen call lets you record whenever a user sees a screen, in your mobile app, along with any properties about the screen.

LemniskSdk.screen('<name>', {properties}, {otherIds})

The screen call has the following fields:

| Parameter | Type | Data Type | Description | |-----------|------|-----------|-------------| | name | optional | String | The name of the Screen, for example Signup, Login, Home, Product, Cart. | | properties | optional | Object | A dictionary of properties for the screen. | | otherIds | optional | Object | A dictionary of other user identities you know about the user, like email or mobile or any other identifier |

Example screen call:

LemniskSdk.screen('Home', {
	"key": "value",
}, null)

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT