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