Skip to content

Commit 4929819

Browse files
committed
Include ValidationMessage in Incubator.TextField docs
1 parent 91a258c commit 4929819

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/incubator/TextField/ValidationMessage.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ export interface ValidationMessageProps {
1212
* The validation message to display when field is invalid (depends on validate)
1313
*/
1414
validationMessage?: string;
15+
/**
16+
* Custom style for the validation message
17+
*/
1518
validationMessageStyle?: TextStyle;
1619
retainSpace?: boolean;
1720
}
1821

19-
export default ({
22+
const ValidationMessage = ({
2023
validationMessage,
2124
enableErrors,
2225
validationMessageStyle,
@@ -40,3 +43,6 @@ const styles = StyleSheet.create({
4043
minHeight: 20
4144
}
4245
});
46+
47+
ValidationMessage.displayName = 'Incubator.TextField';
48+
export default ValidationMessage;

0 commit comments

Comments
 (0)