@ornikar/kitt-universal 7.7.0 → 7.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2458,7 +2458,13 @@ var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
2458
2458
  }, function (_ref2) {
2459
2459
  var theme = _ref2.theme,
2460
2460
  multiline = _ref2.multiline;
2461
- if (!multiline && Platform.OS !== 'web') return 0;
2461
+ var shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline; // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
2462
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
2463
+
2464
+ if (shouldHandleSingleLineOnIOS) {
2465
+ return 0;
2466
+ }
2467
+
2462
2468
  var typeConfigKey = getTypographyTypeConfigKey(theme);
2463
2469
  return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight, "px");
2464
2470
  }, function (_ref3) {