From 06b2ab5451340d23f6837526da9814a14d854846 Mon Sep 17 00:00:00 2001 From: Shane Rosenthal Date: Fri, 6 Feb 2026 07:20:46 -0500 Subject: [PATCH] fix: capitalize On/Off JS event function names in mobile docs The JavaScript API exports On and Off (capitalized) per native.d.ts, but the docs showed on/off (lowercase). Updated all references in: - resources/views/docs/mobile/3/the-basics/events.md - resources/views/docs/mobile/3/the-basics/native-functions.md This aligns the documentation with the actual mobile-air source code. --- .../views/docs/mobile/3/the-basics/events.md | 18 +++++++++--------- .../mobile/3/the-basics/native-functions.md | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/resources/views/docs/mobile/3/the-basics/events.md b/resources/views/docs/mobile/3/the-basics/events.md index 6036f1de..de179ef1 100644 --- a/resources/views/docs/mobile/3/the-basics/events.md +++ b/resources/views/docs/mobile/3/the-basics/events.md @@ -107,7 +107,7 @@ Events are 'broadcast' to the frontend of your application via the web view thro easily listen for these events through JavaScript in a few ways: - The globally available `Native.on()` helper -- Directly importing the `on` function +- Directly importing the `On` function - The `#[OnNative()]` PHP attribute Livewire extension