From 2e71f1e05419eb4da824aab6fbf46217d06af326 Mon Sep 17 00:00:00 2001 From: saranshkataria Date: Tue, 12 Mar 2019 07:34:45 -0700 Subject: [PATCH] added maxFontSizeMultiplier to textinput props and added null attribute --- types/react-native/index.d.ts | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 786af04312..c2a51ef882 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -809,14 +809,6 @@ export interface TextPropsIOS { * default, a gray oval highlights the text on press down. */ suppressHighlighting?: boolean; - - /** - * Specifies largest possible scale a font can reach when allowFontScaling is enabled. Possible values: - * - null/undefined (default): inherit from the parent node or the global default (0) - * - 0: no max, ignore parent/global default - * - >= 1: sets the maxFontSizeMultiplier of this node to this value - */ - maxFontSizeMultiplier?: number; } export interface TextPropsAndroid { @@ -912,6 +904,14 @@ export interface TextProps extends TextPropsIOS, TextPropsAndroid, Accessibility * Used to reference react managed views from native code. */ nativeID?: string; + + /** + * Specifies largest possible scale a font can reach when allowFontScaling is enabled. Possible values: + * - null/undefined (default): inherit from the parent node or the global default (0) + * - 0: no max, ignore parent/global default + * - >= 1: sets the maxFontSizeMultiplier of this node to this value + */ + maxFontSizeMultiplier?: number | null; } /** @@ -1436,6 +1436,14 @@ export interface TextInputProps extends ViewProps, TextInputIOSProps, TextInputA * or set/update maxLength to prevent unwanted edits without flicker. */ value?: string; + + /** + * Specifies largest possible scale a font can reach when allowFontScaling is enabled. Possible values: + * - null/undefined (default): inherit from the parent node or the global default (0) + * - 0: no max, ignore parent/global default + * - >= 1: sets the maxFontSizeMultiplier of this node to this value + */ + maxFontSizeMultiplier?: number | null; } /**