Conversation
…ilds Agents building a small app kept falling back to vendor source for things the docs didn't say. This covers the ones we could verify against nativephp/mobile 4.5.2 and nativephp/mobile-ui 0.6.0: - Installation and quick start now install and register nativephp/mobile-ui, and explain what breaks without it. - Replace stale nativephp/native-ui package references. - List item: attribute spelling (camelCase), boolean binding, handler argument order, and that the trailing icon button has no Blade handler in 0.6.0. Remove the @trailing-press example that did nothing. - Text input and data binding: when to debounce, and replace the non-existent <native:text-input> tag in examples. - Development: where native:run leaves the simulator .app and debug .apk. - Testing: setup notes and how to target list row callbacks. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…for shared builds Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…st item attributes Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We had agents build the same small todo app on NativePHP Mobile v4 (nativephp/mobile 4.5.2, nativephp/mobile-ui 0.6.0). They read the docs through the MCP server and still kept opening vendor source, mostly ListItem.php. This fills the gaps they hit. Every claim here was checked against those two released versions, most of them in a scratch Laravel app with a Pest test.
What was missing or wrong:
<native:button>throwsUnknown native element typeand<native:text>/<native:column>draw nothing on device, because their renderers live in the plugin.nativephp/native-uior linked to a repo that doesn't exist.<native:text-input>was used in data binding, lifecycle hooks and testing examples. That tag doesn't exist; it's outlined/filled/bare.wire:modelinstead ofnative:model.leading-iconare silently dropped,leadingCheckbox="false"renders checked, and@trailing-press/on-trailing-pressare ignored in 0.6.0. The accessibility page had an@trailing-pressexample that can never work, because core turns unknown@nameattributes into child-component events.native:model. Live binding on a fast typist loses characters in 0.6.0 (Text input: a late echo of an earlier keystroke overwrites newer text (characters vanish while typing) mobile-ui#95).native:runleaves the simulator .app and debug .apk.What changed:
laravel new my-app --using=nativephp/mobile-starter. The starter kit now requires mobile-ui ^0.6 (Require nativephp/mobile-ui ^0.6 and list it in boost.json mobile-starter#12), so no extra step is needed after it. A sentence explains that--no-nodeskips the npm install and build a SuperNative app doesn't need, and thatlaravel newalso installs Laravel Boost for AI agent guidelines (--no-boostskips it). For an existing app, and on the EDGE intro and Native UI pages, they cover installing and registering mobile-ui.:.a11y-label/a11y-hint, and a short "Testing a list" section.on-trailing-pressandheadline-line-throughare documented with a note that they need the mobile-ui release containing Read on-trailing-press on list items mobile-ui#108 and Feature: new billing flow #109. Neither is promised for 0.6.0. The accessibility example now useson-trailing-presswith the same note.@submitgets the field's text as its last argument. Data binding links to it.NATIVEPHP_APP_VERSION=DEBUGfor shared builds (a fixed version only re-extracts when version or build number changes).composer create-project nativephp/mobile-starterdirectly: add--stability=devor you get the old v3 tag.How I tested:
DocumentationRenderingTestandDocumentationTableOfContentsTestpass, and I rendered each changed page to check the new anchors and the escaped{{ }}in prose. The list-item, boolean and text-input behaviour was confirmed with a Pest test in a fresh Laravel app on the released packages. The build output paths come from reading RunsIos/RunsAndroid in 4.5.2. I didn't run a device build.What to watch: the #108 and #109 notes should be replaced with a version number once those ship. #530 and #511 also touch list.md but in different sections, so they should merge cleanly.
🤖 Generated with Claude Code