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 🙏

© 2024 – Pkg Stats / Ryan Hefner

native-notify

v4.0.4

Published

Expo Push Notifications (React Native) by https://NativeNotify.com. Send your first Expo push notification in less than a minute.

Downloads

3,301

Readme

native-notify

You must create a free NativeNotify.com account to receive an App Id and an App Token, or native-notify won't work.

Go to https://NativeNotify.com to sign up for free, no credit card required.

What is Native Notify?

Native Notify is a React Native Expo Push Notification service. Native Notify makes React Native Expo Push Notifications simple. With this native-notify plugin, you can send your first push notification in under 1 minute. Sign up for https://NativeNotify.com for free. No credit card required.

Does native-notify work in Expo managed-workflow?

Yes, native-notify works in Expo managed-workflow or Expo bare-workflow. You do NOT have to eject out of Expo to use native-notify.

Setup Guide:

Step 1: Install

npm i native-notify 
expo install expo-device expo-notifications

Step 2: Import

Import registerNNPushToken in your App.js file:

import registerNNPushToken from 'native-notify';

Step 3: Make sure your App.js function is a hook function

Your App.js function MUST be a hook function, or your push notifications will NOT work. Here is an example:

export default function App() {
     ...
}

This link explains how hooks work: https://reactjs.org/docs/hooks-intro.html

Step 4: Paste

Paste this code into your App.js component in the App function:

registerNNPushToken(yourAppId, 'yourAppToken');

You must go to https://NativeNotify.com to receive a free App Id and App Token, or the registerNNPushToken function will not work. It's free to sign up. No credit card required.

Example of an App.js component with native-notify code included:

import registerNNPushToken from 'native-notify';

export default function App() {
     registerNNPushToken(yourAppId, 'yourAppToken');

     return (
        ...
     )
}

Use

The registerNNPushToken function will register your user's Native Notify push notification token and will return a data object. You can then send your users push notifications in the https://NativeNotify.com push notification portal. You can send data objects with your Native Notify push notifications. Once a user taps on your Native Notify push notification, the value of the data object will be returned to the pushDataObject variable. You can use this value to do things like redirect your users to a particular screen once a Native Notify push notification is tapped.

Show your support

Give a ⭐️ if this project helped you!