Radio.js 794 B

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