You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`textComponentTypes`|`string[]`| Types of host components that are allowed to contain text nodes. Trying to render text outside of these components will throw an error. Useful for simulating React Native's text rendering rules. |
99
99
|`publicTextComponentTypes`|`string[]`| Host component types to display to users in error messages when they try to render text outside of `textComponentTypes`. Defaults to `textComponentTypes` if not provided. |
100
-
|`createNodeMock`|`(element: ReactElement) => object`| Function to create mock objects for refs. Called once per element that has a ref. Defaults to returning an empty object. |
101
100
|`transformHiddenInstanceProps`|`({ props, type }: { props: Record<string, unknown>; type: string }) => Record<string, unknown>`| Transforms host instance props when React marks an instance as hidden (for example, while Suspense fallback is shown). Return a new props object instead of mutating the provided one. When provided, hidden instances stay visible in `children` and `toJSON()` output using transformed props. |
102
101
|`identifierPrefix`|`string`| A string prefix React uses for IDs generated by `useId()`. Useful to avoid conflicts when using multiple roots. |
103
102
|`isStrictMode`|`boolean`| Enable React Strict Mode. When enabled, components render twice and effects run twice in development. |
0 commit comments