3.5.0 • Published 5 months ago

@novu/react-native v3.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Novu's React Native SDK for building custom inbox notification experiences.

Novu provides the @novu/react-native a React library that helps to add a fully functioning Inbox to your mobile application in minutes. Let's do a quick recap on how you can easily use it in your application. See full documentation here.

Installation

  • Install @novu/react-native npm package in your react app
npm install @novu/react-native

Getting Started

  • Add the below code in the app.tsx file
import { NovuProvider, useNotifications } from '@novu/react-native';

function YourCustomInbox() {
  const { notifications, isLoading, fetchMore, hasMore } = useNotifications();

  return (
    <Show when={!isLoading} fallback={<NotificationListSkeleton />}>
      <Show when={notifications && notifications.length > 0} fallback={<EmptyNotificationList />}>
        <InfiniteScroll
          dataLength={notifications?.length ?? 0}
          fetchMore={fetchMore}
          hasMore={hasMore}
          loader={<LoadMoreSkeleton />}
        >
          {notifications?.map((notification) => {
            return <NotificationItem key={notification.id} notification={notification} />;
          })}
        </InfiniteScroll>
      </Show>
    </Show>
  );
}
3.4.0

5 months ago

3.3.1

6 months ago

3.3.0

6 months ago

3.0.3

7 months ago

3.2.0

6 months ago

3.1.0

7 months ago

3.0.1

7 months ago

3.5.0

5 months ago

2.6.5

9 months ago

2.6.6

8 months ago

2.6.8

7 months ago

2.3.3

11 months ago

2.3.5

10 months ago

2.6.10

7 months ago

2.2.0-rc.3

1 year ago

2.3.1

1 year ago

2.2.0-rc.2

1 year ago

2.2.0-rc.1

1 year ago