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 ec62e01 commit bc5214cCopy full SHA for bc5214c
packages/core/src/MenuDropdown/item.tsx
@@ -5,10 +5,8 @@ export interface ItemProps {
5
children?: React.ReactNode;
6
}
7
8
-export default class Item extends React.Component<ItemProps> {
9
- render() {
10
- return <View style={styles.item}>{this.props.children}</View>;
11
- }
+export default function Item(props: ItemProps) {
+ return <View style={styles.item}>{props.children}</View>;
12
13
14
const styles = StyleSheet.create({
0 commit comments