Skip to content

fix: capitalize On/Off JS event function names in mobile docs#263

Merged
shanerbaner82 merged 1 commit intomainfrom
fix/mobile-docs-js-api-casing
Feb 6, 2026
Merged

fix: capitalize On/Off JS event function names in mobile docs#263
shanerbaner82 merged 1 commit intomainfrom
fix/mobile-docs-js-api-casing

Conversation

@shanerbaner82
Copy link
Contributor

Summary

The JavaScript API exports On and Off (capitalized) per native.d.ts in mobile-air, but the docs showed on/off (lowercase).

Changes

Updated all references in v3 mobile docs:

  • resources/views/docs/mobile/3/the-basics/events.md
  • resources/views/docs/mobile/3/the-basics/native-functions.md

Details

  • import { on, off, ... }import { On, Off, ... }
  • on(Events.X.Y, callback)On(Events.X.Y, callback)
  • off(Events.X.Y, callback)Off(Events.X.Y, callback)

This aligns the documentation with the actual mobile-air source code (native.d.ts).

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.
@shanerbaner82 shanerbaner82 merged commit 1448b94 into main Feb 6, 2026
1 of 2 checks passed
@shanerbaner82 shanerbaner82 deleted the fix/mobile-docs-js-api-casing branch February 6, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant