diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 756ef2b340..83266b6383 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -800,12 +800,6 @@ export interface TextStyle extends TextStyleIOS, TextStyleAndroid, ViewStyle { } export interface TextPropsIOS { - /** - * Specifies whether fonts should scale to respect Text Size accessibility setting on iOS. The - * default is `true`. - */ - allowFontScaling?: boolean; - /** * Specifies whether font should be scaled down automatically to fit given style constraints. */ @@ -843,6 +837,12 @@ export interface TextPropsAndroid { // https://facebook.github.io/react-native/docs/text.html#props export interface TextProps extends TextPropsIOS, TextPropsAndroid, AccessibilityProps { + /** + * Specifies whether fonts should scale to respect Text Size accessibility settings. + * The default is `true`. + */ + allowFontScaling?: boolean; + /** * This can be one of the following values: * @@ -1088,6 +1088,12 @@ export type ReturnKeyTypeOptions = ReturnKeyType | ReturnKeyTypeAndroid | Return */ export interface TextInputProps extends ViewProps, TextInputIOSProps, TextInputAndroidProps, AccessibilityProps { + /** + * Specifies whether fonts should scale to respect Text Size accessibility settings. + * The default is `true`. + */ + allowFontScaling?: boolean; + /** * Can tell TextInput to automatically capitalize certain characters. * characters: all characters,