Radio.js 916 B

12345678910111213141516171819202122232425262728293031
  1. // @flow
  2. import { Platform } from 'react-native';
  3. import variable from './../variables/platform';
  4. import { PLATFORM } from './../variables/commonColor';
  5. export default (variables /* : * */ = variable) => {
  6. const radioTheme = {
  7. '.selected': {
  8. 'NativeBase.IconNB': {
  9. color:
  10. Platform.OS === PLATFORM.IOS
  11. ? variables.radioColor
  12. : variables.radioSelectedColorAndroid,
  13. lineHeight:
  14. Platform.OS === PLATFORM.IOS ? 25 : variables.radioBtnLineHeight,
  15. height: Platform.OS === PLATFORM.IOS ? 20 : undefined
  16. }
  17. },
  18. 'NativeBase.IconNB': {
  19. color: Platform.OS === PLATFORM.IOS ? 'transparent' : undefined,
  20. lineHeight:
  21. Platform.OS === PLATFORM.IOS ? undefined : variables.radioBtnLineHeight,
  22. fontSize:
  23. Platform.OS === PLATFORM.IOS ? undefined : variables.radioBtnSize
  24. }
  25. };
  26. return radioTheme;
  27. };