@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.
@@ -2432,7 +2432,13 @@ const StyledTextInput = /*#__PURE__*/styled__default(reactNative.TextInput).with
2432
2432
  theme,
2433
2433
  multiline
2434
2434
  }) => {
2435
- if (!multiline && reactNative.Platform.OS !== 'web') return 0;
2435
+ const shouldHandleSingleLineOnIOS = reactNative.Platform.OS === 'ios' && !multiline; // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
2436
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
2437
+
2438
+ if (shouldHandleSingleLineOnIOS) {
2439
+ return 0;
2440
+ }
2441
+
2436
2442
  const typeConfigKey = getTypographyTypeConfigKey(theme);
2437
2443
  return `${theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight}px`;
2438
2444
  }, ({