API
API Reference
expo-air JavaScript API
ExpoAirModule
The native module for controlling the floating widget.
import ExpoAir from '@10play/expo-air';Methods
| Method | Description |
|---|---|
show(options?) | Show the floating bubble. Options: { size?: number, color?: string } |
hide() | Hide the floating bubble |
expand() | Expand the bubble to the full widget view |
collapse() | Collapse the widget back to the floating bubble |
Usage
import ExpoAir from '@10play/expo-air';
// Show the bubble with custom size and color
ExpoAir.show({ size: 60, color: '#000000' });
// Expand to full widget
ExpoAir.expand();
// Collapse back to bubble
ExpoAir.collapse();
// Hide it
ExpoAir.hide();