We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91a258c commit 4929819Copy full SHA for 4929819
src/incubator/TextField/ValidationMessage.tsx
@@ -12,11 +12,14 @@ export interface ValidationMessageProps {
12
* The validation message to display when field is invalid (depends on validate)
13
*/
14
validationMessage?: string;
15
+ /**
16
+ * Custom style for the validation message
17
+ */
18
validationMessageStyle?: TextStyle;
19
retainSpace?: boolean;
20
}
21
-export default ({
22
+const ValidationMessage = ({
23
validationMessage,
24
enableErrors,
25
validationMessageStyle,
@@ -40,3 +43,6 @@ const styles = StyleSheet.create({
40
43
minHeight: 20
41
44
42
45
});
46
+
47
+ValidationMessage.displayName = 'Incubator.TextField';
48
+export default ValidationMessage;
0 commit comments