2019-06-25 22:20:24 +02:00
|
|
|
// @flow
|
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
import { Platform } from 'react-native';
|
2019-06-25 22:20:24 +02:00
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
import variable from './../variables/platform';
|
|
|
|
import { PLATFORM } from './../variables/commonColor';
|
2019-06-25 22:20:24 +02:00
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
export default (variables /* : * */ = variable) => {
|
2019-06-25 22:20:24 +02:00
|
|
|
const radioTheme = {
|
2020-01-28 20:07:21 +01:00
|
|
|
'.selected': {
|
|
|
|
'NativeBase.IconNB': {
|
|
|
|
color:
|
|
|
|
Platform.OS === PLATFORM.IOS
|
|
|
|
? variables.radioColor
|
|
|
|
: variables.radioSelectedColorAndroid,
|
|
|
|
lineHeight:
|
|
|
|
Platform.OS === PLATFORM.IOS ? 25 : variables.radioBtnLineHeight,
|
|
|
|
height: Platform.OS === PLATFORM.IOS ? 20 : undefined
|
2019-06-25 22:20:24 +02:00
|
|
|
}
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'NativeBase.IconNB': {
|
|
|
|
color: Platform.OS === PLATFORM.IOS ? 'transparent' : undefined,
|
|
|
|
lineHeight:
|
|
|
|
Platform.OS === PLATFORM.IOS ? undefined : variables.radioBtnLineHeight,
|
|
|
|
fontSize:
|
|
|
|
Platform.OS === PLATFORM.IOS ? undefined : variables.radioBtnSize
|
2019-06-25 22:20:24 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
return radioTheme;
|
|
|
|
};
|