@teardown/react-native 2.0.39 → 2.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/adapters/notifications/expo.mdx +2 -0
- package/docs/adapters/notifications/firebase.mdx +2 -0
- package/docs/adapters/notifications/index.mdx +2 -0
- package/docs/adapters/notifications/wix.mdx +2 -0
- package/package.json +6 -6
- package/src/clients/notifications/adapters/notifications.adapter-interface.ts +8 -0
- package/src/global.d.ts +5 -0
|
@@ -3,6 +3,8 @@ title: ExpoNotificationsAdapter
|
|
|
3
3
|
description: Notification adapter for Expo projects using expo-notifications.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
> **Work in Progress**: The notification adapter APIs are under active development and may change in future releases.
|
|
7
|
+
|
|
6
8
|
The `ExpoNotificationsAdapter` integrates with Expo's notifications library for push notification handling.
|
|
7
9
|
|
|
8
10
|
## Installation
|
|
@@ -3,6 +3,8 @@ title: FirebaseMessagingAdapter
|
|
|
3
3
|
description: Notification adapter for Firebase Cloud Messaging.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
> **Work in Progress**: The notification adapter APIs are under active development and may change in future releases.
|
|
7
|
+
|
|
6
8
|
The `FirebaseMessagingAdapter` integrates with Firebase Cloud Messaging for push notifications.
|
|
7
9
|
|
|
8
10
|
## Installation
|
|
@@ -4,6 +4,8 @@ description: Push notification adapters for token registration and management.
|
|
|
4
4
|
icon: Bell
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
> **Work in Progress**: The notification adapter APIs are under active development and may change in future releases.
|
|
8
|
+
|
|
7
9
|
Notification adapters handle push notification token registration, permission requests, and notification event handling with your push notification provider.
|
|
8
10
|
|
|
9
11
|
## Available Adapters
|
|
@@ -3,6 +3,8 @@ title: WixNotificationsAdapter
|
|
|
3
3
|
description: Notification adapter for Wix react-native-notifications library.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
> **Work in Progress**: The notification adapter APIs are under active development and may change in future releases.
|
|
7
|
+
|
|
6
8
|
The `WixNotificationsAdapter` integrates with Wix's react-native-notifications library.
|
|
7
9
|
|
|
8
10
|
## Installation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teardown/react-native",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.41",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -52,18 +52,18 @@
|
|
|
52
52
|
"prepublishOnly": "bun run build"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@teardown/ingest-api": "2.0.
|
|
56
|
-
"@teardown/schemas": "2.0.
|
|
57
|
-
"@teardown/types": "2.0.
|
|
55
|
+
"@teardown/ingest-api": "2.0.41",
|
|
56
|
+
"@teardown/schemas": "2.0.41",
|
|
57
|
+
"@teardown/types": "2.0.41",
|
|
58
58
|
"eventemitter3": "^5.0.1",
|
|
59
59
|
"react-native-get-random-values": "^2.0.0",
|
|
60
60
|
"uuid": "^13.0.0",
|
|
61
61
|
"zod": "4.2.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@biomejs/biome": "2.3.
|
|
64
|
+
"@biomejs/biome": "2.3.11",
|
|
65
65
|
"@react-native-firebase/messaging": "*",
|
|
66
|
-
"@teardown/tsconfig": "2.0.
|
|
66
|
+
"@teardown/tsconfig": "2.0.41",
|
|
67
67
|
"@types/bun": "1.3.5",
|
|
68
68
|
"@types/react": "~19.1.0",
|
|
69
69
|
"@types/uuid": "^11.0.0",
|
|
@@ -52,6 +52,14 @@ export type Unsubscribe = () => void;
|
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
54
54
|
export abstract class NotificationAdapter {
|
|
55
|
+
constructor() {
|
|
56
|
+
if (__DEV__) {
|
|
57
|
+
console.warn(
|
|
58
|
+
"[@teardown/react-native] Notification adapters are a work in progress and may change in future releases."
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
55
63
|
/**
|
|
56
64
|
* The notification platform this adapter supports.
|
|
57
65
|
* Used to identify token type when sending to backend.
|