We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b550a2 commit d4c46ddCopy full SHA for d4c46dd
packages/react-native/Libraries/Components/View/View.js
@@ -23,10 +23,16 @@ import {use} from 'react';
23
*
24
* @see https://reactnative.dev/docs/view
25
*/
26
-export default component View(
+const ViewImpl: component(
27
ref?: React.RefSetter<React.ElementRef<typeof ViewNativeComponent>>,
28
...props: ViewProps
29
-) {
+) = ({
30
+ ref,
31
+ ...props
32
+}: {
33
+ ref?: React.RefSetter<React.ElementRef<typeof ViewNativeComponent>>,
34
+ ...ViewProps,
35
+}) => {
36
const hasTextAncestor = use(TextAncestorContext);
37
38
let actualView;
@@ -212,4 +218,7 @@ export default component View(
212
218
);
213
219
}
214
220
return actualView;
215
-}
221
+};
222
+
223
+ViewImpl.displayName = 'View';
224
+export default ViewImpl;
0 commit comments