@d4l/react-native-wear-connectivity
Version:
Establish a two-way connection with wearOS
14 lines (12 loc) • 318 B
text/typescript
// Subscriptions
export type EventType = 'message' | 'genuineMessage';
type UnsubscribeFn = Function;
type CallbackFunction = (event: any) => void;
export type AddListener = (
event: EventType,
cb: CallbackFunction
) => UnsubscribeFn;
export type WatchEvents = {
addListener: AddListener;
on: AddListener;
};