Skip to content

Commit 209da89

Browse files
committed
chore: cleanup
1 parent 7e0f2ff commit 209da89

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

content/guide/core/utils.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,25 @@ Utils.executeOnMainThread(fn: Function)
203203
```
204204
Checks if the current thread is the main thread. If it is, calls the passed function. Otherwise, it dispatches it to the main thread.
205205
206+
:::warning Important!
207+
208+
This will be made synchronously when invoked from the main thread, or asynchronously if it's not.
209+
210+
:::
211+
206212
---
207213
### executeOnUIThread()
208214
```ts
209215
Utils.executeOnUIThread(fn: Function)
210216
```
211217
Runs the passed function on the UI Thread.
212218
219+
:::warning Important!
220+
221+
Always dispatches asynchronously to the UI thread.
222+
223+
:::
224+
213225
---
214226
### mainThreadify()
215227
```ts

content/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ contributors:
66

77
## What is NativeScript?
88

9-
NativeScript provides platform APIs directly to the JavaScript runtime (_with strong types_) for a rich TypeScript development experience, which can be used to build cross platform apps. This is facilitated by the iOS (@nativescript/ios) and Android (@nativescript/android) runtimes. To aid in cross-platform development, common use-cases are implemented in @nativescript/core utilizing the underlying native APIs provided by each runtime.
9+
NativeScript provides platform APIs directly to the JavaScript runtime (_with strong types_) for a rich TypeScript development experience, which can be used to build cross platform apps. This is facilitated by the iOS (@nativescript/ios) and Android (@nativescript/android) runtimes.
10+
11+
To aid in cross-platform development, common use-cases are implemented in @nativescript/core utilizing the underlying native APIs provided by each runtime.
1012

1113
The "frontend" code can be authored in various frameworks often referred to as _flavors_. The currently supported flavors consist of the following:
1214

content/sidebar.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ export default [
2525
text: 'Running',
2626
link: '/guide/running',
2727
},
28-
{
29-
text: 'Testing',
30-
link: '/guide/testing'
31-
},
3228
{
3329
text: 'Debugging',
3430
link: '/guide/debugging',
3531
},
32+
{
33+
text: 'Testing',
34+
link: '/guide/testing'
35+
},
3636
{
3737
text: 'Plugins',
3838
link: '/guide/development-workflow/using-packages'

0 commit comments

Comments
 (0)