Skip to content

Commit 111231e

Browse files
Merge branch 'dev' of github.com:KeyValueSoftwareSystems/siren-react-native-inbox into dev
2 parents 6e425ad + a7b051d commit 111231e

19 files changed

+4948
-4859
lines changed

CHANGELOG.md

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,8 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [Unreleased]
5+
## [1.0.0] - 2024-03-26
66

77
### Added
88

9-
- New feature or enhancement.
10-
11-
### Changed
12-
13-
- Updates to existing features.
14-
15-
### Deprecated
16-
17-
- Features or functionalities to be removed in future releases.
18-
19-
### Removed
20-
21-
- Features or functionalities that have been removed.
22-
23-
### Fixed
24-
25-
- Bug fixes.
26-
27-
### Security
28-
29-
- Security-related changes.
30-
31-
## [Version] - YYYY-MM-DD
32-
33-
### Added
34-
35-
- New feature or enhancement.
36-
37-
### Changed
38-
39-
- Updates to existing features.
40-
41-
### Deprecated
42-
43-
- Features or functionalities to be removed in future releases.
44-
45-
### Removed
46-
47-
- Features or functionalities that have been removed.
48-
49-
### Fixed
50-
51-
- Bug fixes.
52-
53-
### Security
54-
55-
- Security-related changes
56-
9+
- React native UI kit for managing and displaying in-app notification

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22

33
## Overview
44

5-
The `@siren/react-native-inbox` sdk is a comprehensive and customizable React Native UI kit for displaying and managing notifications. This documentation provides comprehensive information on how to install, configure, and use the sdk effectively.
5+
The `@sirenapp/react-native-inbox` sdk is a comprehensive and customizable React Native UI kit for displaying and managing notifications. This documentation provides comprehensive information on how to install, configure, and use the sdk effectively.
66

77
## 1. Installation
88

99
You can install the react sdk from npm
1010

1111
```bash
12-
npm @siren/react-native-inbox
12+
npm @sirenapp/react-native-inbox
1313
```
1414
or from yarn
1515

1616
```bash
17-
yarn @siren/react-native-inbox
17+
yarn @sirenapp/react-native-inbox
1818
```
1919

2020
## 2. Configuration
2121
### 2.1 Initialization
2222
Initialize the sdk with user token and recipient id. Wrap the provider around your App's root.
2323

2424
```js
25-
import { SirenProvider } from '@siren/react-native-inbox';
25+
import { SirenProvider } from '@sirenapp/react-native-inbox';
2626

2727
const config = {
2828
userToken: 'your_user_token',
@@ -39,7 +39,7 @@ Once the provider is configured, next step is to configure the notification icon
3939

4040
This component consists of a notification icon along with a badge to display the number of unviewed notifications
4141
```js
42-
import { SirenInboxIcon } from '@siren/react-native-inbox';
42+
import { SirenInboxIcon } from '@sirenapp/react-native-inbox';
4343

4444
<SirenInboxIcon />
4545

@@ -98,7 +98,7 @@ Here are the custom style options for the notification icon:
9898
Inbox is a paginated list view for displaying notifications.
9999

100100
```js
101-
import { SirenInbox } from '@siren/react-native-inbox';
101+
import { SirenInbox } from '@sirenapp/react-native-inbox';
102102

103103
<SirenInbox />
104104

@@ -222,7 +222,7 @@ Here are the custom style options for the notification inbox:
222222
`useSiren` is a hook that provides utility functions for modifying notifications.
223223

224224
```js
225-
import { useSiren } from '@siren/react-native-inbox';
225+
import { useSiren } from '@sirenapp/react-native-inbox';
226226

227227
function MyComponent() {
228228
const { markAsRead, deleteNotification } = useSiren();
@@ -268,7 +268,7 @@ Here's a basic example to help you get started
268268

269269
import React from 'react';
270270
import {SafeAreaView} from 'react-native';
271-
import {SirenInbox,SirenInboxIcon,SirenProvider} from '@siren/react-native-inbox';
271+
import {SirenInbox,SirenInboxIcon,SirenProvider} from '@sirenapp/react-native-inbox';
272272

273273
function App(): React.JSX.Element {
274274

example/App.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { SirenProvider } from '@siren/react-native-inbox';
2+
import { SirenProvider } from '@sirenapp/react-native-inbox';
33
import { NavigationContainer } from '@react-navigation/native';
44
import { createNativeStackNavigator } from '@react-navigation/native-stack';
55

@@ -24,10 +24,10 @@ function MyStack() {
2424
}
2525

2626
function App(): React.JSX.Element {
27-
const [config, setConfig] = React.useState({
28-
userToken: '227047349b3044fbac7c24fdf5537c44',
29-
recipientId: '551cd601-65b3-41b2-bbce-bbd15908992f'
30-
});
27+
const config = {
28+
userToken: 'YOUR_USER_TOKEN',
29+
recipientId: 'YOUR_RECIPIENT_ID',
30+
};
3131

3232
return (
3333
<NavigationContainer>

0 commit comments

Comments
 (0)