diff --git a/website/docs/13.x/_meta.json b/website/docs/13.x-alpha/_meta.json similarity index 100% rename from website/docs/13.x/_meta.json rename to website/docs/13.x-alpha/_meta.json diff --git a/website/docs/13.x/cookbook/_meta.json b/website/docs/13.x-alpha/cookbook/_meta.json similarity index 100% rename from website/docs/13.x/cookbook/_meta.json rename to website/docs/13.x-alpha/cookbook/_meta.json diff --git a/website/docs/13.x/cookbook/advanced/_meta.json b/website/docs/13.x-alpha/cookbook/advanced/_meta.json similarity index 100% rename from website/docs/13.x/cookbook/advanced/_meta.json rename to website/docs/13.x-alpha/cookbook/advanced/_meta.json diff --git a/website/docs/13.x/cookbook/advanced/network-requests.md b/website/docs/13.x-alpha/cookbook/advanced/network-requests.md similarity index 100% rename from website/docs/13.x/cookbook/advanced/network-requests.md rename to website/docs/13.x-alpha/cookbook/advanced/network-requests.md diff --git a/website/docs/13.x/cookbook/basics/_meta.json b/website/docs/13.x-alpha/cookbook/basics/_meta.json similarity index 100% rename from website/docs/13.x/cookbook/basics/_meta.json rename to website/docs/13.x-alpha/cookbook/basics/_meta.json diff --git a/website/docs/13.x/cookbook/basics/async-tests.md b/website/docs/13.x-alpha/cookbook/basics/async-tests.md similarity index 100% rename from website/docs/13.x/cookbook/basics/async-tests.md rename to website/docs/13.x-alpha/cookbook/basics/async-tests.md diff --git a/website/docs/13.x/cookbook/basics/custom-render.md b/website/docs/13.x-alpha/cookbook/basics/custom-render.md similarity index 100% rename from website/docs/13.x/cookbook/basics/custom-render.md rename to website/docs/13.x-alpha/cookbook/basics/custom-render.md diff --git a/website/docs/13.x/cookbook/index.md b/website/docs/13.x-alpha/cookbook/index.md similarity index 100% rename from website/docs/13.x/cookbook/index.md rename to website/docs/13.x-alpha/cookbook/index.md diff --git a/website/docs/13.x/cookbook/state-management/_meta.json b/website/docs/13.x-alpha/cookbook/state-management/_meta.json similarity index 100% rename from website/docs/13.x/cookbook/state-management/_meta.json rename to website/docs/13.x-alpha/cookbook/state-management/_meta.json diff --git a/website/docs/13.x/cookbook/state-management/jotai.md b/website/docs/13.x-alpha/cookbook/state-management/jotai.md similarity index 100% rename from website/docs/13.x/cookbook/state-management/jotai.md rename to website/docs/13.x-alpha/cookbook/state-management/jotai.md diff --git a/website/docs/13.x/docs/_meta.json b/website/docs/13.x-alpha/docs/_meta.json similarity index 100% rename from website/docs/13.x/docs/_meta.json rename to website/docs/13.x-alpha/docs/_meta.json diff --git a/website/docs/13.x/docs/advanced/_meta.json b/website/docs/13.x-alpha/docs/advanced/_meta.json similarity index 100% rename from website/docs/13.x/docs/advanced/_meta.json rename to website/docs/13.x-alpha/docs/advanced/_meta.json diff --git a/website/docs/13.x/docs/advanced/testing-env.mdx b/website/docs/13.x-alpha/docs/advanced/testing-env.mdx similarity index 100% rename from website/docs/13.x/docs/advanced/testing-env.mdx rename to website/docs/13.x-alpha/docs/advanced/testing-env.mdx diff --git a/website/docs/13.x/docs/advanced/understanding-act.mdx b/website/docs/13.x-alpha/docs/advanced/understanding-act.mdx similarity index 100% rename from website/docs/13.x/docs/advanced/understanding-act.mdx rename to website/docs/13.x-alpha/docs/advanced/understanding-act.mdx diff --git a/website/docs/13.x/docs/api.md b/website/docs/13.x-alpha/docs/api.md similarity index 100% rename from website/docs/13.x/docs/api.md rename to website/docs/13.x-alpha/docs/api.md diff --git a/website/docs/13.x/docs/api/_meta.json b/website/docs/13.x-alpha/docs/api/_meta.json similarity index 100% rename from website/docs/13.x/docs/api/_meta.json rename to website/docs/13.x-alpha/docs/api/_meta.json diff --git a/website/docs/13.x/docs/api/events/_meta.json b/website/docs/13.x-alpha/docs/api/events/_meta.json similarity index 100% rename from website/docs/13.x/docs/api/events/_meta.json rename to website/docs/13.x-alpha/docs/api/events/_meta.json diff --git a/website/docs/13.x/docs/api/events/fire-event.mdx b/website/docs/13.x-alpha/docs/api/events/fire-event.mdx similarity index 100% rename from website/docs/13.x/docs/api/events/fire-event.mdx rename to website/docs/13.x-alpha/docs/api/events/fire-event.mdx diff --git a/website/docs/13.x/docs/api/events/user-event.mdx b/website/docs/13.x-alpha/docs/api/events/user-event.mdx similarity index 99% rename from website/docs/13.x/docs/api/events/user-event.mdx rename to website/docs/13.x-alpha/docs/api/events/user-event.mdx index 5a8379fe8..02eb4821f 100644 --- a/website/docs/13.x/docs/api/events/user-event.mdx +++ b/website/docs/13.x-alpha/docs/api/events/user-event.mdx @@ -1,11 +1,5 @@ # User Event interactions -:::info RNTL minimal version - -User Event interactions require RNTL v12.2.0 or later. - -::: - ## Comparison with Fire Event API Fire Event is our original event simulation API. It can invoke **any event handler** declared on **either host or composite elements**. Suppose the element does not have `onEventName` event handler for the passed `eventName` event, or the element is disabled. In that case, Fire Event will traverse up the component tree, looking for an event handler on both host and composite elements along the way. By default, it will **not pass any event data**, but the user might provide it in the last argument. diff --git a/website/docs/13.x/docs/api/jest-matchers.mdx b/website/docs/13.x-alpha/docs/api/jest-matchers.mdx similarity index 98% rename from website/docs/13.x/docs/api/jest-matchers.mdx rename to website/docs/13.x-alpha/docs/api/jest-matchers.mdx index 26255ada9..12e63d327 100644 --- a/website/docs/13.x/docs/api/jest-matchers.mdx +++ b/website/docs/13.x-alpha/docs/api/jest-matchers.mdx @@ -1,11 +1,5 @@ # Jest matchers -:::info RNTL minimal version - -Built-in Jest matchers require RNTL v12.4.0 or later. - -::: - This guide describes built-in Jest matchers, we recommend using these matchers as they provide readable tests, accessibility support, and a better developer experience. ## Setup diff --git a/website/docs/13.x/docs/api/misc/_meta.json b/website/docs/13.x-alpha/docs/api/misc/_meta.json similarity index 100% rename from website/docs/13.x/docs/api/misc/_meta.json rename to website/docs/13.x-alpha/docs/api/misc/_meta.json diff --git a/website/docs/13.x/docs/api/misc/accessibility.mdx b/website/docs/13.x-alpha/docs/api/misc/accessibility.mdx similarity index 100% rename from website/docs/13.x/docs/api/misc/accessibility.mdx rename to website/docs/13.x-alpha/docs/api/misc/accessibility.mdx diff --git a/website/docs/13.x/docs/api/misc/async.mdx b/website/docs/13.x-alpha/docs/api/misc/async.mdx similarity index 100% rename from website/docs/13.x/docs/api/misc/async.mdx rename to website/docs/13.x-alpha/docs/api/misc/async.mdx diff --git a/website/docs/13.x/docs/api/misc/config.mdx b/website/docs/13.x-alpha/docs/api/misc/config.mdx similarity index 92% rename from website/docs/13.x/docs/api/misc/config.mdx rename to website/docs/13.x-alpha/docs/api/misc/config.mdx index bdaabd107..f08def6c5 100644 --- a/website/docs/13.x/docs/api/misc/config.mdx +++ b/website/docs/13.x-alpha/docs/api/misc/config.mdx @@ -29,7 +29,8 @@ Default [debug options](#debug) to be used when calling `debug()`. These default ### `concurrentRoot` option -Set to `true` to enable concurrent rendering used in the React Native New Architecture. Otherwise `render` will default to legacy synchronous rendering. +Set to `false` to disable concurrent rendering. +Otherwise, `render` will default to using concurrent rendering used in the React Native New Architecture. ## `resetToDefaults()` diff --git a/website/docs/13.x/docs/api/misc/other.mdx b/website/docs/13.x-alpha/docs/api/misc/other.mdx similarity index 100% rename from website/docs/13.x/docs/api/misc/other.mdx rename to website/docs/13.x-alpha/docs/api/misc/other.mdx diff --git a/website/docs/13.x/docs/api/misc/render-hook.mdx b/website/docs/13.x-alpha/docs/api/misc/render-hook.mdx similarity index 100% rename from website/docs/13.x/docs/api/misc/render-hook.mdx rename to website/docs/13.x-alpha/docs/api/misc/render-hook.mdx diff --git a/website/docs/13.x/docs/api/queries.mdx b/website/docs/13.x-alpha/docs/api/queries.mdx similarity index 100% rename from website/docs/13.x/docs/api/queries.mdx rename to website/docs/13.x-alpha/docs/api/queries.mdx diff --git a/website/docs/13.x/docs/api/render.mdx b/website/docs/13.x-alpha/docs/api/render.mdx similarity index 94% rename from website/docs/13.x/docs/api/render.mdx rename to website/docs/13.x-alpha/docs/api/render.mdx index ee38878ff..1d0e45b82 100644 --- a/website/docs/13.x/docs/api/render.mdx +++ b/website/docs/13.x-alpha/docs/api/render.mdx @@ -34,7 +34,8 @@ This option allows you to wrap the tested component, passed as the first option #### `concurrentRoot` option -Set to `true` to enable concurrent rendering used in the React Native New Architecture. Otherwise `render` will default to legacy synchronous rendering. +Set to `false` to disable concurrent rendering. +Otherwise, `render` will default to using concurrent rendering used in the React Native New Architecture. #### `createNodeMock` option diff --git a/website/docs/13.x/docs/api/screen.mdx b/website/docs/13.x-alpha/docs/api/screen.mdx similarity index 100% rename from website/docs/13.x/docs/api/screen.mdx rename to website/docs/13.x-alpha/docs/api/screen.mdx diff --git a/website/docs/13.x/docs/guides/_meta.json b/website/docs/13.x-alpha/docs/guides/_meta.json similarity index 100% rename from website/docs/13.x/docs/guides/_meta.json rename to website/docs/13.x-alpha/docs/guides/_meta.json diff --git a/website/docs/13.x/docs/guides/community-resources.mdx b/website/docs/13.x-alpha/docs/guides/community-resources.mdx similarity index 100% rename from website/docs/13.x/docs/guides/community-resources.mdx rename to website/docs/13.x-alpha/docs/guides/community-resources.mdx diff --git a/website/docs/13.x/docs/guides/faq.mdx b/website/docs/13.x-alpha/docs/guides/faq.mdx similarity index 100% rename from website/docs/13.x/docs/guides/faq.mdx rename to website/docs/13.x-alpha/docs/guides/faq.mdx diff --git a/website/docs/13.x/docs/guides/how-to-query.mdx b/website/docs/13.x-alpha/docs/guides/how-to-query.mdx similarity index 100% rename from website/docs/13.x/docs/guides/how-to-query.mdx rename to website/docs/13.x-alpha/docs/guides/how-to-query.mdx diff --git a/website/docs/13.x/docs/guides/troubleshooting.mdx b/website/docs/13.x-alpha/docs/guides/troubleshooting.mdx similarity index 100% rename from website/docs/13.x/docs/guides/troubleshooting.mdx rename to website/docs/13.x-alpha/docs/guides/troubleshooting.mdx diff --git a/website/docs/13.x/docs/migration/_meta.json b/website/docs/13.x-alpha/docs/migration/_meta.json similarity index 100% rename from website/docs/13.x/docs/migration/_meta.json rename to website/docs/13.x-alpha/docs/migration/_meta.json diff --git a/website/docs/13.x/docs/migration/jest-matchers.mdx b/website/docs/13.x-alpha/docs/migration/jest-matchers.mdx similarity index 90% rename from website/docs/13.x/docs/migration/jest-matchers.mdx rename to website/docs/13.x-alpha/docs/migration/jest-matchers.mdx index 1ab9e05aa..4d1e0c4a8 100644 --- a/website/docs/13.x/docs/migration/jest-matchers.mdx +++ b/website/docs/13.x-alpha/docs/migration/jest-matchers.mdx @@ -8,11 +8,7 @@ All of the built-in Jest matchers provided by the React Native Testing Library s ## Usage -You can use the built-in matchers by adding the following line to your `jest-setup.ts` file (configured using [`setupFilesAfterEnv`](https://jestjs.io/docs/configuration#setupfilesafterenv-array)): - -```ts title=jest-setup.ts -import '@testing-library/react-native/extend-expect'; -``` +You don't need to do anything to use the built-in matchers. They are automatically available when you import anything from `@testing-library/react-native`. ### Gradual migration @@ -23,7 +19,6 @@ You can use the built-in matchers alongside legacy Jest Native matchers by chang // import '@testing-library/jest-native/extend-expect'; // With this: -import '@testing-library/react-native/extend-expect'; import '@testing-library/jest-native/legacy-extend-expect'; ``` diff --git a/website/docs/13.x/docs/migration/previous/_meta.json b/website/docs/13.x-alpha/docs/migration/previous/_meta.json similarity index 100% rename from website/docs/13.x/docs/migration/previous/_meta.json rename to website/docs/13.x-alpha/docs/migration/previous/_meta.json diff --git a/website/docs/13.x/docs/migration/previous/v11.mdx b/website/docs/13.x-alpha/docs/migration/previous/v11.mdx similarity index 100% rename from website/docs/13.x/docs/migration/previous/v11.mdx rename to website/docs/13.x-alpha/docs/migration/previous/v11.mdx diff --git a/website/docs/13.x/docs/migration/previous/v2.mdx b/website/docs/13.x-alpha/docs/migration/previous/v2.mdx similarity index 100% rename from website/docs/13.x/docs/migration/previous/v2.mdx rename to website/docs/13.x-alpha/docs/migration/previous/v2.mdx diff --git a/website/docs/13.x/docs/migration/previous/v7.mdx b/website/docs/13.x-alpha/docs/migration/previous/v7.mdx similarity index 100% rename from website/docs/13.x/docs/migration/previous/v7.mdx rename to website/docs/13.x-alpha/docs/migration/previous/v7.mdx diff --git a/website/docs/13.x/docs/migration/previous/v9.mdx b/website/docs/13.x-alpha/docs/migration/previous/v9.mdx similarity index 100% rename from website/docs/13.x/docs/migration/previous/v9.mdx rename to website/docs/13.x-alpha/docs/migration/previous/v9.mdx diff --git a/website/docs/13.x/docs/migration/v12.mdx b/website/docs/13.x-alpha/docs/migration/v12.mdx similarity index 100% rename from website/docs/13.x/docs/migration/v12.mdx rename to website/docs/13.x-alpha/docs/migration/v12.mdx diff --git a/website/docs/13.x/docs/start/_meta.json b/website/docs/13.x-alpha/docs/start/_meta.json similarity index 100% rename from website/docs/13.x/docs/start/_meta.json rename to website/docs/13.x-alpha/docs/start/_meta.json diff --git a/website/docs/13.x/docs/start/intro.md b/website/docs/13.x-alpha/docs/start/intro.md similarity index 100% rename from website/docs/13.x/docs/start/intro.md rename to website/docs/13.x-alpha/docs/start/intro.md diff --git a/website/docs/13.x/docs/start/quick-start.mdx b/website/docs/13.x-alpha/docs/start/quick-start.mdx similarity index 100% rename from website/docs/13.x/docs/start/quick-start.mdx rename to website/docs/13.x-alpha/docs/start/quick-start.mdx diff --git a/website/docs/13.x/index.md b/website/docs/13.x-alpha/index.md similarity index 100% rename from website/docs/13.x/index.md rename to website/docs/13.x-alpha/index.md diff --git a/website/rspress.config.ts b/website/rspress.config.ts index 4ed75289d..842ac1874 100644 --- a/website/rspress.config.ts +++ b/website/rspress.config.ts @@ -19,7 +19,7 @@ export default defineConfig({ }, multiVersion: { default: '12.x', - versions: ['12.x', '13.x'], + versions: ['12.x', '13.x-alpha'], }, route: { cleanUrls: true,