style.ts 850 B

12345678910111213141516171819202122232425262728293031323334
  1. import { StyleSheet } from 'react-native';
  2. import { Colors } from '../../theme';
  3. import { getFontSize } from '../../utils';
  4. export const styling = (focused: boolean) =>
  5. StyleSheet.create({
  6. inputError: {
  7. borderStyle: 'solid',
  8. borderColor: Colors.RED
  9. },
  10. wrapper: {
  11. width: '100%',
  12. color: Colors.DARK_BLUE,
  13. height: 44,
  14. borderStyle: 'solid',
  15. borderWidth: 1,
  16. borderColor: focused ? Colors.DARK_BLUE : 'rgba(250, 250, 250, 1)',
  17. borderRadius: 6,
  18. backgroundColor: Colors.FILL_LIGHT,
  19. fontSize: 15
  20. },
  21. text: {
  22. color: Colors.DARK_BLUE,
  23. fontSize: getFontSize(14),
  24. fontFamily: 'redhat-700',
  25. marginBottom: 5
  26. },
  27. errorText: {
  28. color: Colors.RED,
  29. fontSize: getFontSize(12),
  30. fontFamily: 'redhat-600',
  31. marginTop: 5
  32. }
  33. });