Skip to content

Commit a1b54a9

Browse files
author
rulishu
committed
Merge branch 'dev' of github.com:uiwjs/react-native-uiw into rls
2 parents 6560508 + 0edb15d commit a1b54a9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/core/src/MenuDropdown/item.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ export interface ItemProps {
55
children?: React.ReactNode;
66
}
77

8-
export default class Item extends React.Component<ItemProps> {
9-
render() {
10-
return <View style={styles.item}>{this.props.children}</View>;
11-
}
8+
export default function Item(props: ItemProps) {
9+
return <View style={styles.item}>{props.children}</View>;
1210
}
1311

1412
const styles = StyleSheet.create({

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
},
4444
"devDependencies": {
4545
"@babel/plugin-proposal-decorators": "~7.20.7",
46+
"@babel/plugin-proposal-private-property-in-object": "~7.21.0",
4647
"@kkt/less-modules": "^7.3.2",
4748
"@kkt/raw-modules": "7.0.5",
4849
"@kkt/scope-plugin-options": "7.0.5",

0 commit comments

Comments
 (0)