Skip to content

Commit cc42a6a

Browse files
authored
Revise native functions documentation for clarity
Updated documentation to clarify the use of Plugins and their respective documentation. Adjusted phrasing for consistency and clarity throughout the section.
1 parent 4c4a17d commit cc42a6a

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,30 @@ that lets you focus on building your app. Build for both platforms while you dev
99
Native device functions are called directly from your PHP code, giving you access to platform-specific features while
1010
maintaining the productivity and familiarity of Laravel development.
1111

12-
These functions are called from your PHP code using an ever-growing list of classes. These classes are also wrapped in
13-
Laravel Facades for ease of access and testing, such as:
12+
These functions are called from your PHP code using an ever-growing set of [Plugins](../plugins/). Plugins contain PHP classes that
13+
are also wrapped in Laravel Facades for ease of access and testing, such as:
1414

1515
```php
1616
Native\Mobile\Facades\Biometrics
1717
Native\Mobile\Facades\Browser
1818
Native\Mobile\Facades\Camera
1919
```
2020

21-
Each of these is covered in our [APIs](../apis/) section.
21+
Each of these is covered in their respective plugin's documentation.
2222

2323

2424
## Run from anywhere
2525

26-
All of our supported APIs are called through PHP. This means NativePHP for Mobile is not reliant upon a web view to
27-
function, and eventually we will fully support apps that don't use a web view as their main tool for rendering the UI.
28-
Though this will be optional, so you have total freedom of choice and could even build completely hybrid solutions.
26+
All native APIs are called through PHP. This means that your application is not reliant upon a web view to
27+
function.
2928

30-
When using a web view and using JavaScript you may also interact with the native functions easily from JavaScript using
29+
However, when using a web view you may also interact with the native functions easily from JavaScript using
3130
our convenient `Native` library.
3231

3332
This is especially useful if you're building applications with a SPA framework, like Vue or React, as you can simply
3433
import the functions you need and move a lot of work into the reactive part of your UI.
3534

36-
### Install the plugin
35+
### Install the Node plugin
3736

3837
To use the `Native` JavaScript library, you must install the plugin in your `package.json` file. Add the following
3938
section to the JSON:
@@ -75,7 +74,7 @@ onUnmounted(() => {
7574
The library is fully typed, so your IDE should be able to pick up the available properties and methods to provide you
7675
with inline hints and code completion support.
7776

78-
For the most part, the JavaScript APIs mirror the PHP APIs. Any key differences are noted in our API docs.
77+
For the most part, the JavaScript APIs mirror the PHP APIs. Any key differences are noted in each Plugin's docs.
7978

8079
This approach uses the PHP interface under the hood, meaning the two implementations stay in lock-step with each other.
8180
So you'll never need to worry about whether an API is available only in one place or the other; they're all always

0 commit comments

Comments
 (0)