Skip to content

Commit

Permalink
fix: children as react element in @type/react@18 (last)
Browse files Browse the repository at this point in the history
  • Loading branch information
1uokun committed Jan 6, 2023
1 parent b19226a commit 0d08b6b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/modal/ModalView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface IModalPropTypes {
wrapStyle?: StyleProp<ViewStyle>
maskStyle?: StyleProp<ViewStyle>
style?: {}
children?: React.ReactNode
animationType: 'none' | 'fade' | 'slide-up' | 'slide-down'
animationDuration?: number
visible: boolean
Expand Down
1 change: 1 addition & 0 deletions components/notice-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface NoticeNativeProps
WithThemeStyles<NoticeBarStyle> {
marqueeProps?: MarqueeProps
style?: StyleProp<ViewStyle>
children?: React.ReactNode
}

export default class NoticeBar extends React.Component<NoticeNativeProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/picker/cascader/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { CascaderProps, CascaderValue } from './CascaderTypes'
export interface IPopupCascaderProps extends PopupPickerProps {
cascader: React.ReactElement<CascaderProps>
onChange?: (date?: CascaderValue) => void
children?: React.ReactNode
}

class PopupCascader extends React.Component<IPopupCascaderProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/swipe-action/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export interface SwipeActionProps extends SwipeableProps {
left?: SwipeoutButtonProps[]
right?: SwipeoutButtonProps[]
buttonWidth?: number
children?: React.ReactNode
}
export interface SwipeoutButtonProps {
style?: StyleProp<TextStyle>
Expand Down
1 change: 1 addition & 0 deletions components/tab-bar/TabBarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface TabBarItemProps {
iconStyle?: StyleProp<ImageStyle>
renderAsOriginal?: boolean
styles?: ReturnType<typeof TabBarItemStyles>
children?: React.ReactNode
}
export default class TabBarItem extends React.Component<TabBarItemProps, any> {
static defaultProps = {
Expand Down
1 change: 1 addition & 0 deletions components/tab-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import TabBarStyles, { TabBarStyle } from './style/index'
import TabBarItem from './TabBarItem'
export interface TabBarNativeProps extends TabBarProps {
styles?: TabBarStyle
children: React.ReactElement<TabBarItem>[] | React.ReactElement<TabBarItem>
}

class TabBar extends React.Component<TabBarNativeProps, any> {
Expand Down

0 comments on commit 0d08b6b

Please sign in to comment.