Skip to content

Commit 0e6aef7

Browse files
committed
Fix Toast.d for build and RadioGroup
1 parent 4dc2bf9 commit 0e6aef7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

generatedTypes/components/radioButton/RadioGroup.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export declare type RadioGroupProps = ViewProps & {
1313
};
1414
export declare type RadioGroupPropTypes = RadioGroupProps;
1515
interface RadioGroupState {
16+
initialValue?: RadioGroupProps['initialValue'];
1617
value?: RadioGroupProps['initialValue'];
1718
}
1819
declare type Props = RadioGroupProps & BaseComponentInjectedProps & ForwardRefInjectedProps;
@@ -22,7 +23,6 @@ declare type Props = RadioGroupProps & BaseComponentInjectedProps & ForwardRefIn
2223
declare class RadioGroup extends PureComponent<Props, RadioGroupState> {
2324
static displayName: string;
2425
constructor(props: Props);
25-
static getUpdatedState: (nextProps: Props, prevState: RadioGroupState) => RadioGroupState | null;
2626
static getDerivedStateFromProps: GetDerivedStateFromProps<Props, RadioGroupState>;
2727
getContextProviderValue(): {
2828
value: string | number | boolean | undefined;

typings/components/Toast.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {ReactElement} from 'react';
22
import {ImageRequireSource} from 'react-native';
33
import {BaseComponent} from '../commons';
44
import {ColorValue} from '../style/colors';
5-
import {ButtonProps} from '../../generatedTypes';
65

76
export type ToastPosition = 'top' | 'bottom';
87

@@ -13,7 +12,7 @@ export interface ToastProps {
1312
color?: ColorValue;
1413
message?: string;
1514
icon?: ImageRequireSource;
16-
action?: ButtonProps;
15+
action?: any; // This is actually ButtonProps, but it's not available here.
1716
onDismiss?: () => void;
1817
autoDismiss?: number;
1918
onAnimationEnd?: (visible: boolean) => void;

0 commit comments

Comments
 (0)