react-native-animated-radio-button
Version:
Fully customizable animated radio button for React Native
21 lines (20 loc) • 645 B
TypeScript
import * as React from "react";
import { StyleProp, ViewStyle } from "react-native";
declare type CustomStyleProp = StyleProp<ViewStyle> | Array<StyleProp<ViewStyle>>;
export interface IRadioButtonProps {
style?: CustomStyleProp;
innerContainerStyle?: CustomStyleProp;
isActive?: boolean;
initial?: boolean;
innerBackgroundColor?: string;
onPress: (isActive: boolean) => void;
}
interface IState {
isActive: boolean;
}
export default class RadioButton extends React.Component<IRadioButtonProps, IState> {
constructor(props: IRadioButtonProps);
handlePress: () => void;
render(): JSX.Element;
}
export {};