@magicred-1/react-native-lxmf 0.2.17 → 0.2.18
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/android/src/main/jniLibs/arm64-v8a/liblxmf_rn.so +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/liblxmf_rn.so +0 -0
- package/android/src/main/jniLibs/x86_64/liblxmf_rn.so +0 -0
- package/build/index.d.ts +1 -1
- package/build/useLxmf.d.ts +15 -0
- package/ios/RustCore/liblxmf_rn.xcframework/ios-arm64/liblxmf_rn.a +0 -0
- package/ios/RustCore/liblxmf_rn.xcframework/ios-arm64_x86_64-simulator/liblxmf_rn.a +0 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/build/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { LxmfModule, LxmfModuleNative, isLxmfNativeAvailable, NativeModuleType } from './LxmfModule';
|
|
2
|
-
export { useLxmf, LxmfNodeMode, type UseLxmfOptions, type TcpInterface, type LxmfNodeStatus, type Beacon, type LxmfEvent, type LxmfMedia } from './useLxmf';
|
|
2
|
+
export { useLxmf, LxmfNodeMode, type UseLxmfOptions, type TcpInterface, type LxmfNodeStatus, type Beacon, type LxmfEvent, type LxmfMessageEvent, type LxmfMedia } from './useLxmf';
|
package/build/useLxmf.d.ts
CHANGED
|
@@ -18,6 +18,21 @@ export interface Beacon {
|
|
|
18
18
|
lastAnnounce: number;
|
|
19
19
|
reconnectAttempts: number;
|
|
20
20
|
}
|
|
21
|
+
export interface LxmfMessageEvent {
|
|
22
|
+
type: 'messageReceived';
|
|
23
|
+
source: string;
|
|
24
|
+
title: string;
|
|
25
|
+
body: string;
|
|
26
|
+
timestamp: number;
|
|
27
|
+
image?: {
|
|
28
|
+
mimeType: string;
|
|
29
|
+
data: string;
|
|
30
|
+
};
|
|
31
|
+
files?: {
|
|
32
|
+
name: string;
|
|
33
|
+
data: string;
|
|
34
|
+
}[];
|
|
35
|
+
}
|
|
21
36
|
export interface LxmfEvent {
|
|
22
37
|
type: 'statusChanged' | 'packetReceived' | 'txReceived' | 'beaconDiscovered' | 'messageReceived' | 'announceReceived' | 'log' | 'error';
|
|
23
38
|
[key: string]: any;
|
|
Binary file
|
|
Binary file
|