@@ -277,7 +277,7 @@ export type LinkStyleRuleSet = StyleRuleSet<LinkStyle>;
277277
278278export interface ImageStyle extends ViewAndImageCommonStyle , FlexboxStyle {
279279 resizeMode ?: 'contain' | 'cover' | 'stretch' ;
280-
280+
281281 // This is an Android only style attribute that is used to fill the gap in the case of rounded corners
282282 // in gif images.
283283 overlayColor ?: string ;
@@ -452,7 +452,7 @@ export interface ImagePropsShared extends CommonProps {
452452 children ?: ReactNode ;
453453 resizeMode ?: 'stretch' | 'contain' | 'cover' | 'auto' | 'repeat' ;
454454
455- resizeMethod ?: 'auto' | 'resize' | 'scale' ; // Android only
455+ resizeMethod ?: 'auto' | 'resize' | 'scale' ; // Android only
456456 title ?: string ;
457457
458458 onLoad ?: ( size : Dimensions ) => void ;
@@ -489,17 +489,17 @@ export interface TextPropsShared extends CommonProps {
489489
490490 // iOS and Android only
491491 ellipsizeMode ?: 'head' | 'middle' | 'tail' ;
492-
492+
493493 // Exposing this property as temporary workaround to fix a bug.
494494 // TODO : http://skype.vso.io/865016 : remove this exposed property
495495 // Used only for Android.
496496 textBreakStrategy ?: 'highQuality' | 'simple' | 'balanced' ;
497497
498498 importantForAccessibility ?: ImportantForAccessibility ;
499-
499+
500500 // Android only
501501 elevation ?: number ;
502-
502+
503503 onPress ?: ( e : SyntheticEvent ) => void ;
504504}
505505
@@ -522,6 +522,7 @@ export interface ViewPropsShared extends CommonProps, CommonAccessibilityProps {
522522 viewLayerTypeAndroid ?: ViewLayerType ; // Android only property
523523 children ?: ReactNode ;
524524 focusable ?: boolean ;
525+ importantForLayout ?: boolean ; // Web-only, additional invisible DOM elements will be added to track the size changes faster
525526
526527 // There are a couple of constraints when child animations are enabled:
527528 // - Every child must have a `key`.
@@ -547,7 +548,7 @@ export interface ViewPropsShared extends CommonProps, CommonAccessibilityProps {
547548 onBlur ?: ( e : FocusEvent ) => void ;
548549
549550 // iOS and Android only. Visual touchfeedback properties
550- disableTouchOpacityAnimation ?: boolean ;
551+ disableTouchOpacityAnimation ?: boolean ;
551552 activeOpacity ?: number ;
552553 underlayColor ?: string ;
553554}
@@ -762,7 +763,7 @@ export interface TextInputPropsShared extends CommonProps, CommonAccessibilityPr
762763 secureTextEntry ?: boolean ;
763764 value ?: string ;
764765 textAlign ?: 'auto' | 'left' | 'right' | 'center' | 'justify' ;
765-
766+
766767 // Should fonts be scaled according to system setting? Defaults
767768 // to true. iOS and Android only.
768769 allowFontScaling ?: boolean ;
@@ -869,9 +870,9 @@ export interface PopupOptions {
869870 popupWidth : number , popupHeight : number ) => ReactNode ;
870871
871872 // Returns a mounted component instance that controls the triggering of the popup.
872- // In majority of cases, "anchor" of popup has handlers to control when the popup will be seen and this function is not required.
873+ // In majority of cases, "anchor" of popup has handlers to control when the popup will be seen and this function is not required.
873874 // In a few cases, where anchor is not the same as the whole component that triggers when the popup wil be seen, this can be used.
874- // For instance, a button combined with a chevron icon, which on click triggers a popup below the chevron icon.
875+ // For instance, a button combined with a chevron icon, which on click triggers a popup below the chevron icon.
875876 // In this example, getElementTriggeringPopup() can return the container with button and chevron icon.
876877 getElementTriggeringPopup ?: ( ) => React . Component < any , any > ;
877878
@@ -893,8 +894,8 @@ export interface PopupOptions {
893894 // already unmounted as it uses a time delay to accommodate a fade-out animation.
894895 onAnchorPressed ?: ( e : RX . Types . SyntheticEvent ) => void ;
895896
896- // Determines if the anchor invoking the popup should behave like a toggle.
897- // Value = true => Calling Popup.show will show the popup. A subsequent call, will hide the popup, and so on.
897+ // Determines if the anchor invoking the popup should behave like a toggle.
898+ // Value = true => Calling Popup.show will show the popup. A subsequent call, will hide the popup, and so on.
898899 // Value = false or undefined (default) => Calling Popup.show will always show the popup.
899900 dismissIfShown ?: boolean ;
900901}
0 commit comments