/** * @tamagui/native * * Native setup modules for Tamagui. Import these at the top of your app entry point. * * @example * ```tsx * // In your app entry (index.js or App.tsx) * import '@tamagui/native/setup-teleport' * import '@tamagui/native/setup-gesture-handler' * import '@tamagui/native/setup-worklets' * import '@tamagui/native/setup-safe-area' * import '@tamagui/native/expo-linear-gradient' * import '@tamagui/native/setup-keyboard-controller' * * // Then use Tamagui components normally * // Sheet will automatically use native gestures when available * // LinearGradient will use expo-linear-gradient when installed * ``` */ // types export type { NativePortalState, GestureState, WorkletsState, SafeAreaState, SafeAreaInsets, SafeAreaFrame, SafeAreaMetrics, LinearGradientState, ZeegoState, BurntState, NativePortalProps, NativePortalHostProps, NativePortalProviderProps, } from './types' // portal export { getPortal } from './portalState' export type { PortalAccessor } from './portalState' // gesture handler export { getGestureHandler } from './gestureState' export { claimExternalPressOwnership as unstable_claimExternalPressOwnership, releaseExternalPressOwnership as unstable_releaseExternalPressOwnership, } from './gestureState' export type { ExternalPressOwnershipToken, GestureHandlerAccessor, PressGestureConfig, } from './gestureState' // NOTE: setupGestureHandler is exported from setup-gesture-handler.ts entry point, // not here, to avoid bundler pulling in RNGH require during tree-shaking export type { GestureHandlerConfig } from './setup-gesture-handler' // worklets export { getWorklets } from './workletsState' export type { WorkletsAccessor } from './workletsState' // safe area export { getSafeArea } from './safeAreaState' export type { SafeAreaAccessor } from './safeAreaState' // linear gradient export { getLinearGradient } from './linearGradientState' export type { LinearGradientAccessor } from './linearGradientState' // keyboard controller state exports (safe - no side effects) export { isKeyboardControllerEnabled, getKeyboardControllerState, setKeyboardControllerState, } from './keyboardControllerState' export type { KeyboardControllerState } from './keyboardControllerState' // zeego (native menus) export { getZeego } from './zeegoState' export type { ZeegoAccessor } from './zeegoState' export { NativeMenuContext } from './nativeMenuContext' // burnt (native toasts) export { getBurnt } from './burntState' export type { BurntAccessor } from './burntState' // components export { NativePortal, NativePortalHost, NativePortalProvider } from './components'