@hoddy-ui/core 1.0.56 → 1.0.58

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoddy-ui/core",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "Core rich react native components written in typescript",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -4,7 +4,6 @@ import {
4
4
  KeyboardAvoidingView,
5
5
  ScrollView,
6
6
  TouchableWithoutFeedback,
7
- View,
8
7
  } from "react-native";
9
8
  import { ScaledSheet } from "react-native-size-matters";
10
9
  import { FormWrapperProps } from "../types";
@@ -36,21 +35,21 @@ export const FormWrapper: React.FC<FormWrapperProps> = ({
36
35
  </KeyboardAvoidingView>
37
36
  </TouchableWithoutFeedback>
38
37
  ) : (
39
- <ScrollView
40
- onScroll={onScroll}
41
- showsVerticalScrollIndicator={false}
42
- scrollEventThrottle={40}
43
- keyboardDismissMode="interactive"
44
- contentContainerStyle={contentContainerStyle}
45
- keyboardShouldPersistTaps="handled"
38
+ <KeyboardAvoidingView
39
+ behavior={behavior}
40
+ style={styles.root}
41
+ keyboardVerticalOffset={keyboardVerticalOffset}
46
42
  >
47
- <KeyboardAvoidingView
48
- behavior={behavior}
49
- style={styles.root}
50
- keyboardVerticalOffset={keyboardVerticalOffset}
43
+ <ScrollView
44
+ onScroll={onScroll}
45
+ showsVerticalScrollIndicator={false}
46
+ scrollEventThrottle={40}
47
+ keyboardDismissMode="interactive"
48
+ contentContainerStyle={contentContainerStyle}
49
+ keyboardShouldPersistTaps="handled"
51
50
  >
52
51
  {children}
53
- </KeyboardAvoidingView>
54
- </ScrollView>
52
+ </ScrollView>
53
+ </KeyboardAvoidingView>
55
54
  );
56
55
  };
@@ -286,7 +286,9 @@ export const TextField2: React.FC<TextFieldProps> = ({
286
286
 
287
287
  const labelAnim = useRef(new Animated.Value(0)).current;
288
288
 
289
- const height = moderateScale(50);
289
+ const height = moderateScale(
290
+ props.multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
291
+ );
290
292
 
291
293
  const setFocused = (value: boolean) => {
292
294
  startTransition(() => {