From f9b07538aeedb967afc2a94e6fa5b0d9a94bae45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Tue, 9 Sep 2025 19:02:37 +0100 Subject: [PATCH 1/6] Initial docs for experimental Web Performance APIs --- docs/global-EventCounts.md | 10 +++ docs/global-PerformanceEntry.md | 10 +++ docs/global-PerformanceEventTiming.md | 14 ++++ docs/global-PerformanceLongTaskTiming.md | 14 ++++ docs/global-PerformanceMark.md | 10 +++ docs/global-PerformanceMeasure.md | 10 +++ docs/global-PerformanceObserver.md | 62 ++++++++++++++ docs/global-PerformanceObserverEntryList.md | 10 +++ docs/global-performance.md | 89 ++++++++++++++++++++- website/sidebars.ts | 8 ++ 10 files changed, 233 insertions(+), 4 deletions(-) create mode 100644 docs/global-EventCounts.md create mode 100644 docs/global-PerformanceEntry.md create mode 100644 docs/global-PerformanceEventTiming.md create mode 100644 docs/global-PerformanceLongTaskTiming.md create mode 100644 docs/global-PerformanceMark.md create mode 100644 docs/global-PerformanceMeasure.md create mode 100644 docs/global-PerformanceObserver.md create mode 100644 docs/global-PerformanceObserverEntryList.md diff --git a/docs/global-EventCounts.md b/docs/global-EventCounts.md new file mode 100644 index 00000000000..8a72883a7d0 --- /dev/null +++ b/docs/global-EventCounts.md @@ -0,0 +1,10 @@ +--- +id: global-EventCounts +title: EventCounts 🧪 +--- + +import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; + + + +The global [`EventCounts`](https://developer.mozilla.org/en-US/docs/Web/API/EventCounts) class, as defined in Web specifications. diff --git a/docs/global-PerformanceEntry.md b/docs/global-PerformanceEntry.md new file mode 100644 index 00000000000..7a992ce0785 --- /dev/null +++ b/docs/global-PerformanceEntry.md @@ -0,0 +1,10 @@ +--- +id: global-PerformanceEntry +title: PerformanceEntry 🧪 +--- + +import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; + + + +The global [`PerformanceEntry`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry) class, as defined in Web specifications. diff --git a/docs/global-PerformanceEventTiming.md b/docs/global-PerformanceEventTiming.md new file mode 100644 index 00000000000..7632bd89ded --- /dev/null +++ b/docs/global-PerformanceEventTiming.md @@ -0,0 +1,14 @@ +--- +id: global-PerformanceEventTiming +title: PerformanceEventTiming 🧪 +--- + +import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; + + + +The global [`PerformanceEventTiming`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEventTiming) class, as defined in Web specifications. + +:::info Partial support +The `cancelable` and `target` properties are not supported yet. +::: diff --git a/docs/global-PerformanceLongTaskTiming.md b/docs/global-PerformanceLongTaskTiming.md new file mode 100644 index 00000000000..986802dc11b --- /dev/null +++ b/docs/global-PerformanceLongTaskTiming.md @@ -0,0 +1,14 @@ +--- +id: global-PerformanceLongTaskTiming +title: PerformanceLongTaskTiming 🧪 +--- + +import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; + + + +The global [`PerformanceLongTaskTiming`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceLongTaskTiming) class, as defined in Web specifications. + +:::info Partial support +The value for the `attribution` property is always an empty array. +::: diff --git a/docs/global-PerformanceMark.md b/docs/global-PerformanceMark.md new file mode 100644 index 00000000000..270333da26c --- /dev/null +++ b/docs/global-PerformanceMark.md @@ -0,0 +1,10 @@ +--- +id: global-PerformanceMark +title: PerformanceMark 🧪 +--- + +import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; + + + +The global [`PerformanceMark`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMark) class, as defined in Web specifications. diff --git a/docs/global-PerformanceMeasure.md b/docs/global-PerformanceMeasure.md new file mode 100644 index 00000000000..fed61ef4e31 --- /dev/null +++ b/docs/global-PerformanceMeasure.md @@ -0,0 +1,10 @@ +--- +id: global-PerformanceMeasure +title: PerformanceMeasure 🧪 +--- + +import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; + + + +The global [`PerformanceMeasure`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMeasure) class, as defined in Web specifications. diff --git a/docs/global-PerformanceObserver.md b/docs/global-PerformanceObserver.md new file mode 100644 index 00000000000..2520027c71f --- /dev/null +++ b/docs/global-PerformanceObserver.md @@ -0,0 +1,62 @@ +--- +id: global-PerformanceObserver +title: PerformanceObserver 🧪 +--- + +import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; + + + +The global [`PerformanceObserver`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver) class, as defined in Web specifications. + +## Example + +```ts +const observer = new PerformanceObserver( + (list, observer, options) => { + for (const entry of list.getEntries()) { + console.log( + 'Received entry with type', + entry.entryType, + 'and name', + entry.name, + 'that started at', + entry.startTime, + 'and took', + entry.duration, + 'ms', + ); + } + }, +); + +observer.observe({entryTypes: ['mark', 'measure']}); +``` + +--- + +# Reference + +## Constructor + +### `PerformanceObserver()` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/PerformanceObserver). + +## Static properties + +### `supportedEntryTypes` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/supportedEntryTypes). + +Returns `['mark', 'measure', 'event', 'longtask']`. + +## Instance methods + +### `observe()` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/observe). + +### `disconnect()` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/disconnect). diff --git a/docs/global-PerformanceObserverEntryList.md b/docs/global-PerformanceObserverEntryList.md new file mode 100644 index 00000000000..f0457bbe995 --- /dev/null +++ b/docs/global-PerformanceObserverEntryList.md @@ -0,0 +1,10 @@ +--- +id: global-PerformanceObserverEntryList +title: PerformanceObserverEntryList 🧪 +--- + +import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; + + + +The global [`PerformanceObserverEntryList`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList) class, as defined in Web specifications. diff --git a/docs/global-performance.md b/docs/global-performance.md index d83d816fa3f..177531766ff 100644 --- a/docs/global-performance.md +++ b/docs/global-performance.md @@ -1,10 +1,91 @@ --- id: global-performance -title: performance +title: performance 🧪 --- -:::warning -🚧 This page is work in progress, so please refer to the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/API/performance) for more information. +import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; + + + +The global [`performance`](https://developer.mozilla.org/en-US/docs/Web/API/Window/performance) object, as defined in Web specifications. + +--- + +# Reference + +## Instance properties + +### `eventCounts` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/eventCounts). + +### `memory` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/memory). + +### `rnStartupTiming` ⚠️ + +:::warning Non-standard +This is a React Native specific extension. +::: + +Provides information about the startup time of the application. + +```ts +get rnStartupTiming(): ReactNativeStartupTiming; +``` + +The `ReactNativeStartupTiming` interface provides the following fields: + +| Name | Type | Description | +| ---------------------------------------- | -------------- | --------------------------------------------------------- | +| `startTime` | number \| void | When the application startup was started. | +| `initializeRuntimeStart` | number \| void | When the React Native runtime initialization was started. | +| `executeJavaScriptBundleEntryPointStart` | number \| void | When the execution of the application bundle was started. | +| `endTime` | number \| void | When the React Native runtime was fully initialized. | + +### `timeOrigin` + +:::info Partial support +Provides the number of milliseconds from the Unix epoch until system boot, instead of the number of milliseconds from the Unix epoch until app startup. +::: + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin). + +## Instance methods + +### `clearMarks()` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMarks). + +### `clearMeasures()` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures). + +### `getEntries()` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntries). + +### `getEntriesByName()` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByName). + +### `getEntriesByType()` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByType). + +### `mark()` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark). + +### `measure()` + +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure). + +### `now()` + +:::info Partial support +Provides the number of milliseconds from system boot, instead of the number of milliseconds from app startup. ::: -The global `performance` object, as defined in Web specifications. +See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now). diff --git a/website/sidebars.ts b/website/sidebars.ts index 9288c5018ea..1bdb864503a 100644 --- a/website/sidebars.ts +++ b/website/sidebars.ts @@ -240,6 +240,7 @@ export default { 'global-clearInterval', 'global-clearTimeout', 'global-console', + 'global-EventCounts', 'global-fetch', 'global-File', 'global-FileReader', @@ -248,6 +249,13 @@ export default { 'global-Headers', 'global-navigator', 'global-performance', + 'global-PerformanceEntry', + 'global-PerformanceEventTiming', + 'global-PerformanceLongTaskTiming', + 'global-PerformanceMark', + 'global-PerformanceMeasure', + 'global-PerformanceObserver', + 'global-PerformanceObserverEntryList', 'global-process', 'global-queueMicrotask', 'global-Request', From 5becff75a36cb8e5e9b316bb24f4d0ea24f0b5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Thu, 2 Oct 2025 15:52:01 +0100 Subject: [PATCH 2/6] Add experimental and canary banners --- docs/_canary-channel-api-warning.mdx | 7 +++++++ docs/_experimental-channel-api-warning.mdx | 9 +++++++++ docs/global-EventCounts.md | 4 ++-- docs/global-PerformanceEntry.md | 4 ++-- docs/global-PerformanceEventTiming.md | 4 ++-- docs/global-PerformanceLongTaskTiming.md | 4 ++-- docs/global-PerformanceMark.md | 4 ++-- docs/global-PerformanceMeasure.md | 4 ++-- docs/global-PerformanceObserver.md | 4 ++-- docs/global-PerformanceObserverEntryList.md | 4 ++-- docs/global-performance.md | 4 ++-- 11 files changed, 34 insertions(+), 18 deletions(-) create mode 100644 docs/_canary-channel-api-warning.mdx create mode 100644 docs/_experimental-channel-api-warning.mdx diff --git a/docs/_canary-channel-api-warning.mdx b/docs/_canary-channel-api-warning.mdx new file mode 100644 index 00000000000..b1d683151ca --- /dev/null +++ b/docs/_canary-channel-api-warning.mdx @@ -0,0 +1,7 @@ +:::important Canary 🧪 + +**This API is currently only available in React Native’s Canary and Experimental channels.** + +[Learn more about React Native’s release channels here.](releases/release-levels) + +::: diff --git a/docs/_experimental-channel-api-warning.mdx b/docs/_experimental-channel-api-warning.mdx new file mode 100644 index 00000000000..406b303a7cd --- /dev/null +++ b/docs/_experimental-channel-api-warning.mdx @@ -0,0 +1,9 @@ +:::important Experimental Feature 🧪 + +**This API is experimental and is not available in a stable version of React Native yet.** + +Experimental APIs may contain bugs and are likely to change in a future version of React Native. Don't use them in production. + +If you want to try it out, please [enable the Experimental Channel](releases/release-levels) in your app. + +::: diff --git a/docs/global-EventCounts.md b/docs/global-EventCounts.md index 8a72883a7d0..ee1e0347e3e 100644 --- a/docs/global-EventCounts.md +++ b/docs/global-EventCounts.md @@ -3,8 +3,8 @@ id: global-EventCounts title: EventCounts 🧪 --- -import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; +import CanaryAPIWarning from './\_canary-channel-api-warning.mdx'; - + The global [`EventCounts`](https://developer.mozilla.org/en-US/docs/Web/API/EventCounts) class, as defined in Web specifications. diff --git a/docs/global-PerformanceEntry.md b/docs/global-PerformanceEntry.md index 7a992ce0785..4f24c425452 100644 --- a/docs/global-PerformanceEntry.md +++ b/docs/global-PerformanceEntry.md @@ -3,8 +3,8 @@ id: global-PerformanceEntry title: PerformanceEntry 🧪 --- -import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; +import CanaryAPIWarning from './\_canary-channel-api-warning.mdx'; - + The global [`PerformanceEntry`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry) class, as defined in Web specifications. diff --git a/docs/global-PerformanceEventTiming.md b/docs/global-PerformanceEventTiming.md index 7632bd89ded..01e94cc5164 100644 --- a/docs/global-PerformanceEventTiming.md +++ b/docs/global-PerformanceEventTiming.md @@ -3,9 +3,9 @@ id: global-PerformanceEventTiming title: PerformanceEventTiming 🧪 --- -import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; +import CanaryAPIWarning from './\_canary-channel-api-warning.mdx'; - + The global [`PerformanceEventTiming`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEventTiming) class, as defined in Web specifications. diff --git a/docs/global-PerformanceLongTaskTiming.md b/docs/global-PerformanceLongTaskTiming.md index 986802dc11b..dbc325d8376 100644 --- a/docs/global-PerformanceLongTaskTiming.md +++ b/docs/global-PerformanceLongTaskTiming.md @@ -3,9 +3,9 @@ id: global-PerformanceLongTaskTiming title: PerformanceLongTaskTiming 🧪 --- -import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; +import CanaryAPIWarning from './\_canary-channel-api-warning.mdx'; - + The global [`PerformanceLongTaskTiming`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceLongTaskTiming) class, as defined in Web specifications. diff --git a/docs/global-PerformanceMark.md b/docs/global-PerformanceMark.md index 270333da26c..a1281387d6a 100644 --- a/docs/global-PerformanceMark.md +++ b/docs/global-PerformanceMark.md @@ -3,8 +3,8 @@ id: global-PerformanceMark title: PerformanceMark 🧪 --- -import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; +import CanaryAPIWarning from './\_canary-channel-api-warning.mdx'; - + The global [`PerformanceMark`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMark) class, as defined in Web specifications. diff --git a/docs/global-PerformanceMeasure.md b/docs/global-PerformanceMeasure.md index fed61ef4e31..d5fd54a8f97 100644 --- a/docs/global-PerformanceMeasure.md +++ b/docs/global-PerformanceMeasure.md @@ -3,8 +3,8 @@ id: global-PerformanceMeasure title: PerformanceMeasure 🧪 --- -import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; +import CanaryAPIWarning from './\_canary-channel-api-warning.mdx'; - + The global [`PerformanceMeasure`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMeasure) class, as defined in Web specifications. diff --git a/docs/global-PerformanceObserver.md b/docs/global-PerformanceObserver.md index 2520027c71f..103bb1b377a 100644 --- a/docs/global-PerformanceObserver.md +++ b/docs/global-PerformanceObserver.md @@ -3,9 +3,9 @@ id: global-PerformanceObserver title: PerformanceObserver 🧪 --- -import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; +import CanaryAPIWarning from './\_canary-channel-api-warning.mdx'; - + The global [`PerformanceObserver`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver) class, as defined in Web specifications. diff --git a/docs/global-PerformanceObserverEntryList.md b/docs/global-PerformanceObserverEntryList.md index f0457bbe995..367450b6d16 100644 --- a/docs/global-PerformanceObserverEntryList.md +++ b/docs/global-PerformanceObserverEntryList.md @@ -3,8 +3,8 @@ id: global-PerformanceObserverEntryList title: PerformanceObserverEntryList 🧪 --- -import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; +import CanaryAPIWarning from './\_canary-channel-api-warning.mdx'; - + The global [`PerformanceObserverEntryList`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList) class, as defined in Web specifications. diff --git a/docs/global-performance.md b/docs/global-performance.md index 177531766ff..252bb5b6688 100644 --- a/docs/global-performance.md +++ b/docs/global-performance.md @@ -3,9 +3,9 @@ id: global-performance title: performance 🧪 --- -import ExperimentalAPIWarning from './\_experimental-api-warning.mdx'; +import CanaryAPIWarning from './\_canary-channel-api-warning.mdx'; - + The global [`performance`](https://developer.mozilla.org/en-US/docs/Web/API/Window/performance) object, as defined in Web specifications. From 3b17a6824385829e3095aad8f0cc3f59017d0c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Thu, 2 Oct 2025 16:05:09 +0100 Subject: [PATCH 3/6] Fix lint issue with casing --- docs/global-performance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/global-performance.md b/docs/global-performance.md index 252bb5b6688..adbe1fc770f 100644 --- a/docs/global-performance.md +++ b/docs/global-performance.md @@ -47,7 +47,7 @@ The `ReactNativeStartupTiming` interface provides the following fields: ### `timeOrigin` :::info Partial support -Provides the number of milliseconds from the Unix epoch until system boot, instead of the number of milliseconds from the Unix epoch until app startup. +Provides the number of milliseconds from the UNIX epoch until system boot, instead of the number of milliseconds from the UNIX epoch until app startup. ::: See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin). From 3c3ccd589e67bae7256cf37a0f336fe45fa44e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Thu, 2 Oct 2025 20:42:52 +0100 Subject: [PATCH 4/6] Improve admonitions --- docs/_canary-channel-api-warning.mdx | 2 +- docs/_experimental-channel-api-warning.mdx | 2 +- docs/global-PerformanceEventTiming.md | 2 +- docs/global-PerformanceLongTaskTiming.md | 2 +- docs/global-performance.md | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/_canary-channel-api-warning.mdx b/docs/_canary-channel-api-warning.mdx index b1d683151ca..55438d048b0 100644 --- a/docs/_canary-channel-api-warning.mdx +++ b/docs/_canary-channel-api-warning.mdx @@ -1,4 +1,4 @@ -:::important Canary 🧪 +:::tip Canary 🧪 **This API is currently only available in React Native’s Canary and Experimental channels.** diff --git a/docs/_experimental-channel-api-warning.mdx b/docs/_experimental-channel-api-warning.mdx index 406b303a7cd..393577f8340 100644 --- a/docs/_experimental-channel-api-warning.mdx +++ b/docs/_experimental-channel-api-warning.mdx @@ -1,4 +1,4 @@ -:::important Experimental Feature 🧪 +:::tip Experimental Feature 🧪 **This API is experimental and is not available in a stable version of React Native yet.** diff --git a/docs/global-PerformanceEventTiming.md b/docs/global-PerformanceEventTiming.md index 01e94cc5164..1aff347700a 100644 --- a/docs/global-PerformanceEventTiming.md +++ b/docs/global-PerformanceEventTiming.md @@ -9,6 +9,6 @@ import CanaryAPIWarning from './\_canary-channel-api-warning.mdx'; The global [`PerformanceEventTiming`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEventTiming) class, as defined in Web specifications. -:::info Partial support +:::warning Partial support The `cancelable` and `target` properties are not supported yet. ::: diff --git a/docs/global-PerformanceLongTaskTiming.md b/docs/global-PerformanceLongTaskTiming.md index dbc325d8376..ab2804a1a9c 100644 --- a/docs/global-PerformanceLongTaskTiming.md +++ b/docs/global-PerformanceLongTaskTiming.md @@ -9,6 +9,6 @@ import CanaryAPIWarning from './\_canary-channel-api-warning.mdx'; The global [`PerformanceLongTaskTiming`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceLongTaskTiming) class, as defined in Web specifications. -:::info Partial support +:::warning Partial support The value for the `attribution` property is always an empty array. ::: diff --git a/docs/global-performance.md b/docs/global-performance.md index adbe1fc770f..cb5e3a805df 100644 --- a/docs/global-performance.md +++ b/docs/global-performance.md @@ -46,7 +46,7 @@ The `ReactNativeStartupTiming` interface provides the following fields: ### `timeOrigin` -:::info Partial support +:::warning Partial support Provides the number of milliseconds from the UNIX epoch until system boot, instead of the number of milliseconds from the UNIX epoch until app startup. ::: @@ -84,7 +84,7 @@ See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Perf ### `now()` -:::info Partial support +:::warning Partial support Provides the number of milliseconds from system boot, instead of the number of milliseconds from app startup. ::: From 03295dc0a754dc21e33732f500d97e91c36759f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Mon, 6 Oct 2025 15:40:55 -0700 Subject: [PATCH 5/6] Consistency in release channels banners --- docs/_canary-channel-api-warning.mdx | 2 +- docs/_experimental-channel-api-warning.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_canary-channel-api-warning.mdx b/docs/_canary-channel-api-warning.mdx index 55438d048b0..e8b3934b850 100644 --- a/docs/_canary-channel-api-warning.mdx +++ b/docs/_canary-channel-api-warning.mdx @@ -2,6 +2,6 @@ **This API is currently only available in React Native’s Canary and Experimental channels.** -[Learn more about React Native’s release channels here.](releases/release-levels) +If you want to try it out, please [enable the Canary Channel](releases/release-levels) in your app. ::: diff --git a/docs/_experimental-channel-api-warning.mdx b/docs/_experimental-channel-api-warning.mdx index 393577f8340..8f290343124 100644 --- a/docs/_experimental-channel-api-warning.mdx +++ b/docs/_experimental-channel-api-warning.mdx @@ -1,6 +1,6 @@ :::tip Experimental Feature 🧪 -**This API is experimental and is not available in a stable version of React Native yet.** +**This API is currently only available in React Native’s Experimental channels.** Experimental APIs may contain bugs and are likely to change in a future version of React Native. Don't use them in production. From 091fb373238ce54a7bc7132361fdfa888ab33eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Mon, 6 Oct 2025 15:51:45 -0700 Subject: [PATCH 6/6] Fix description of rnStartupTiming.startTime --- docs/global-performance.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/global-performance.md b/docs/global-performance.md index cb5e3a805df..bda3d17c991 100644 --- a/docs/global-performance.md +++ b/docs/global-performance.md @@ -39,8 +39,7 @@ The `ReactNativeStartupTiming` interface provides the following fields: | Name | Type | Description | | ---------------------------------------- | -------------- | --------------------------------------------------------- | -| `startTime` | number \| void | When the application startup was started. | -| `initializeRuntimeStart` | number \| void | When the React Native runtime initialization was started. | +| `startTime` | number \| void | When the React Native runtime initialization was started. | | `executeJavaScriptBundleEntryPointStart` | number \| void | When the execution of the application bundle was started. | | `endTime` | number \| void | When the React Native runtime was fully initialized. |