Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/react-native/Libraries/Components/View/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {use} from 'react';
*
* @see https://reactnative.dev/docs/view
*/
export default component View(
component View(
ref?: React.RefSetter<React.ElementRef<typeof ViewNativeComponent>>,
...props: ViewProps
) {
Expand Down Expand Up @@ -213,3 +213,7 @@ export default component View(
}
return actualView;
}

View.displayName = 'View';

export default View;
8 changes: 5 additions & 3 deletions packages/react-native/ReactNativeApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<a942544e271327a89ec40682d3ec736d>>
* @generated SignedSource<<aeebb0b99abb05522f9a11521709abe3>>
*
* This file was generated by scripts/js-api/build-types/index.js.
*/
Expand Down Expand Up @@ -558,6 +558,7 @@ declare const Vibration_default: {
cancel: () => void
vibrate: (pattern?: Array<number> | number, repeat?: boolean) => void
}
declare const View: typeof View_default
declare const ViewNativeComponent_default: HostComponent<ViewProps>
declare const VirtualizedList: typeof VirtualizedListComponent_default
declare const VirtualizedListComponent_default: VirtualizedListType
Expand Down Expand Up @@ -5621,7 +5622,8 @@ declare type ValueXYListenerCallback = (value: {
y: number
}) => unknown
declare type Vibration = typeof Vibration
declare function View(
declare type View = typeof View
declare function View_default(
props: ViewProps & {
ref?: React.Ref<React.ComponentRef<typeof $$ViewNativeComponent>>
},
Expand Down Expand Up @@ -6165,7 +6167,7 @@ export {
UIManager, // 8d2c8281
UTFSequence, // baacd11b
Vibration, // 315e131d
View, // 75d9e33b
View, // 39dd4de4
ViewProps, // 0ab8ceda
ViewPropsAndroid, // f3d007c3
ViewPropsIOS, // 58ee19bf
Expand Down