Skip to content

Commit 28b7dcc

Browse files
Fix top bar nav docs (#237)
* Fix top bar nav docs * Updates native functions doc
1 parent 4fcc2b4 commit 28b7dcc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

resources/views/docs/mobile/2/edge-components/top-bar.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ A top bar with title and action buttons. This renders at the top of the screen.
1919
<native:top-bar title="Dashboard" subtitle="Welcome back">
2020
<native:top-bar-action
2121
id="search"
22+
label="Search"
2223
icon="search"
2324
:url="route('search')"
2425
/>
2526
<native:top-bar-action
2627
id="settings"
2728
icon="settings"
29+
label="Settings"
2830
url="https://yourapp.com/my-account"
2931
/>
3032
</native:top-bar>
@@ -35,6 +37,7 @@ A top bar with title and action buttons. This renders at the top of the screen.
3537

3638
- `title` - The title text
3739
- `show-navigation-icon` - Show back/menu button (optional, default: `true`)
40+
- `label` - If more than 5 actions, iOS will display an overflow menu and the labels assigned to each item
3841
- `background-color` - Background color. Hex code (optional)
3942
- `text-color` - Text color. Hex code (optional)
4043
- `elevation` - Shadow depth 0-24 (optional) [Android]

resources/views/docs/mobile/2/the-basics/native-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ section to the JSON:
4949
}
5050
```
5151

52-
Then in your JavaScript, simply import the relevant functions from the plugin:
52+
Run `npm install`, then in your JavaScript, simply import the relevant functions from the plugin:
5353

5454
```js
5555
import { on, off, Microphone, Events } from '#nativephp';

0 commit comments

Comments
 (0)