mirror of
https://github.com/hanzoai/mobile.git
synced 2026-10-30 14:53:17 +00:00
11 lines
372 B
TypeScript
11 lines
372 B
TypeScript
import { requireOptionalNativeModule } from 'expo-modules-core'
|
|
|
|
// Typed binding to the native module. Null wherever it is absent — web,
|
|
// Expo Go — so lib/widget.ts can degrade to a silent no-op. Every platform
|
|
// registers the ONE name 'Widget'.
|
|
export type Native = {
|
|
set(stateJson: string): void
|
|
}
|
|
|
|
export default requireOptionalNativeModule<Native>('Widget')
|