@onekeyfe/react-native-ping 1.1.57

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.
@@ -0,0 +1,8 @@
1
+ import { TurboModuleRegistry } from 'react-native';
2
+ import type { TurboModule } from 'react-native';
3
+
4
+ export interface Spec extends TurboModule {
5
+ start(ipAddress: string, option: { timeout?: number; payloadSize?: number }): Promise<number>;
6
+ }
7
+
8
+ export default TurboModuleRegistry.getEnforcing<Spec>('RNReactNativePing');
package/src/index.tsx ADDED
@@ -0,0 +1,4 @@
1
+ import NativePing from './NativePing';
2
+
3
+ export const Ping = NativePing;
4
+ export type { Spec as PingSpec } from './NativePing';