Merge pull request #25733 from jstheoriginal/master

allowFontScaling for react-native
This commit is contained in:
Eloy Durán
2018-05-14 15:33:14 +02:00
committed by GitHub
+12 -6
View File
@@ -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,