This is a Native mobile plugin element. It renders the OS-native toggle (React Native Switch) inside your Bubble Native app, so on device it looks and behaves like the real iOS / Android switch.
It is separate from the web-only Ionic Toggle (Customizable) plugin.
Editor Properties
- initial_value — the initial ON / OFF state when the element loads
- disabled — make the switch read-only (visible but not tappable)
- on_color — track color when ON (leave empty to use the OS default)
- off_color — track color when OFF (leave empty to use the OS default)
- thumb_color — color of the thumb / knob (applies on iOS and Android; it may not appear in a web preview, which is a known React Native Web limitation. Leave empty to use the OS default)
- preview_style — editor preview only; does not affect the device
States
- value (yes / no) — the current ON / OFF value
Events
- onChanged — fires when the toggle is switched
Actions
- Reset value — set the value back to its initial state (does not fire onChanged)