17 lines
469 B
TypeScript
17 lines
469 B
TypeScript
import React from 'react';
|
|
import { RadioButton as RadioButtonUiLib } from 'react-native-ui-lib';
|
|
|
|
import { useTheme } from '../../theme';
|
|
|
|
export const RadioButton = ({ check, testID, size }: { check: boolean; testID?: string; size?: number }): React.ReactElement => {
|
|
const { colors } = useTheme();
|
|
return (
|
|
<RadioButtonUiLib
|
|
testID={testID}
|
|
selected={check}
|
|
size={size || 20}
|
|
color={check ? colors.tintActive : colors.auxiliaryTintColor}
|
|
/>
|
|
);
|
|
};
|