mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #25733 from jstheoriginal/master
allowFontScaling for react-native
This commit is contained in:
Vendored
+12
-6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user