-
Notifications
You must be signed in to change notification settings - Fork 734
Rename components props interface #1534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,39 @@ | ||
import React from 'react'; | ||
import ListItemPart from 'src/components/listItem/ListItemPart'; | ||
import {ListItemProps} from './types'; | ||
export {ListItemProps}; | ||
|
||
declare class ListItem extends Component<ListItemProps, State> { | ||
static displayName: string; | ||
static Part: typeof ListItemPart; | ||
constructor(props: ListItemProps); | ||
onHideUnderlay(): void; | ||
onShowUnderlay(): void; | ||
setPressed(isPressed: boolean): void; | ||
renderViewContainer: () => JSX.Element; | ||
renderCustomContainer(Container: React.ComponentType): JSX.Element; | ||
renderChildren(): React.DetailedReactHTMLElement<any, HTMLElement>[] | null | undefined; | ||
render(): JSX.Element; | ||
import React, { Component } from 'react'; | ||
import ListItemPart from './ListItemPart'; | ||
import { ListItemProps } from './types'; | ||
declare type ListItemState = { | ||
pressed: boolean; | ||
}; | ||
declare class ListItem extends Component<ListItemProps, ListItemState> { | ||
static displayName: string; | ||
static defaultProps: { | ||
height: number; | ||
containerElement: React.ComponentClass<import("../../components/touchableOpacity").TouchableOpacityProps & { | ||
useCustomTheme?: boolean | undefined; | ||
}, any>; | ||
underlayColor: string; | ||
}; | ||
static Part: typeof ListItemPart; | ||
styles: { | ||
container: { | ||
backgroundColor: string; | ||
}; | ||
innerContainer: { | ||
flexDirection: "row"; | ||
height: string | number | undefined; | ||
}; | ||
}; | ||
constructor(props: ListItemProps); | ||
onHideUnderlay(): void; | ||
onShowUnderlay(): void; | ||
setPressed(isPressed: boolean): void; | ||
renderViewContainer: () => JSX.Element; | ||
renderCustomContainer: (Container: React.ComponentType) => JSX.Element; | ||
renderChildren: () => JSX.Element; | ||
render(): JSX.Element; | ||
} | ||
declare const _default: React.ComponentClass< | ||
ListItemProps & { | ||
export { ListItemProps }; | ||
declare const _default: React.ComponentClass<ListItemProps & { | ||
useCustomTheme?: boolean | undefined; | ||
}, | ||
any | ||
> & | ||
typeof ListItem; | ||
}, any> & typeof ListItem; | ||
export default _default; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,8 +142,6 @@ export type ButtonProps = TouchableOpacityProps & | |
animateTo?: ButtonAnimationDirection; | ||
}; | ||
|
||
export type ButtonPropTypes = ButtonProps; //TODO: remove after ComponentPropTypes deprecation; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove from |
||
|
||
export type ButtonState = { | ||
size?: number; | ||
borderRadius?: number; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,6 @@ export type CardProps = ViewProps & | |
hideIndicator?: boolean; | ||
}; | ||
}; | ||
export type CardPropTypes = CardProps; //TODO: remove after ComponentPropTypes deprecation; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove from |
||
|
||
type PropTypes = BaseComponentInjectedProps & | ||
ForwardRefInjectedProps & | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,6 @@ export interface CheckboxProps extends TouchableOpacityProps { | |
*/ | ||
containerStyle?: StyleProp<ViewStyle>; | ||
} | ||
export type CheckboxPropTypes = CheckboxProps; //TODO: remove after ComponentPropTypes deprecation; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove from |
||
|
||
interface CheckboxState { | ||
isChecked: Animated.Value; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,7 +128,6 @@ export type ChipProps = ViewProps & TouchableOpacityProps & { | |
*/ | ||
dismissContainerStyle?: StyleProp<ImageStyle>; | ||
} | ||
export type ChipPropTypes = ChipProps; //TODO: remove after ComponentPropTypes deprecation; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove from |
||
|
||
const DEFAULT_SIZE = 26; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove from
generatedTypes