Radio.js 777 B

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