react-native-notify-sphere 1.0.0 → 1.1.0
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/README.md +1080 -15
- package/android/src/main/AndroidManifest.xml +8 -1
- package/android/src/main/java/com/notifysphere/NotifySphereModule.kt +0 -6
- package/ios/NotifySphere.mm +0 -6
- package/lib/module/NativeNotifySphere.js +11 -0
- package/lib/module/NativeNotifySphere.js.map +1 -1
- package/lib/module/index.js +463 -105
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/NativeNotifySphere.d.ts +11 -1
- package/lib/typescript/src/NativeNotifySphere.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +213 -25
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +9 -11
- package/src/NativeNotifySphere.ts +12 -3
- package/src/index.tsx +670 -154
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
xmlns:tools="http://schemas.android.com/tools">
|
|
3
|
+
<application>
|
|
4
|
+
<meta-data
|
|
5
|
+
android:name="com.google.firebase.messaging.default_notification_channel_id"
|
|
6
|
+
android:value="channel_default"
|
|
7
|
+
tools:replace="android:value" />
|
|
8
|
+
</application>
|
|
2
9
|
</manifest>
|
|
@@ -11,12 +11,6 @@ class NotifySphereModule(reactContext: ReactApplicationContext) :
|
|
|
11
11
|
return NAME
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
// Example method
|
|
15
|
-
// See https://reactnative.dev/docs/native-modules-android
|
|
16
|
-
override fun multiply(a: Double, b: Double): Double {
|
|
17
|
-
return a * b
|
|
18
|
-
}
|
|
19
|
-
|
|
20
14
|
companion object {
|
|
21
15
|
const val NAME = "NotifySphere"
|
|
22
16
|
}
|
package/ios/NotifySphere.mm
CHANGED
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
@implementation NotifySphere
|
|
4
4
|
RCT_EXPORT_MODULE()
|
|
5
5
|
|
|
6
|
-
- (NSNumber *)multiply:(double)a b:(double)b {
|
|
7
|
-
NSNumber *result = @(a * b);
|
|
8
|
-
|
|
9
|
-
return result;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
6
|
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
|
13
7
|
(const facebook::react::ObjCTurboModule::InitParams &)params
|
|
14
8
|
{
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* TurboModule spec for NotifySphere.
|
|
5
|
+
*
|
|
6
|
+
* This file is intentionally minimal — all notification logic is implemented
|
|
7
|
+
* in JavaScript (src/index.tsx) via @react-native-firebase/messaging and
|
|
8
|
+
* @notifee/react-native. No native bridge methods are required.
|
|
9
|
+
*
|
|
10
|
+
* The module registration below is kept for New Architecture compatibility;
|
|
11
|
+
* it allows the codegen to produce the required C++ glue code without
|
|
12
|
+
* exposing any unnecessary native surface.
|
|
13
|
+
*/
|
|
3
14
|
import { TurboModuleRegistry } from 'react-native';
|
|
4
15
|
export default TurboModuleRegistry.getEnforcing('NotifySphere');
|
|
5
16
|
//# sourceMappingURL=NativeNotifySphere.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeNotifySphere.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeNotifySphere.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,mBAAmB,QAA0B,cAAc;AAIpE,eAAeA,mBAAmB,CAACC,YAAY,CAAO,cAAc,CAAC","ignoreList":[]}
|