Classes
ViewCommon
Summary β
Constructors
Properties
- _androidContentDescriptionUpdated
- _closeModalCallback
- _currentHeightMeasureSpec
- _currentWidthMeasureSpec
- _gestureObservers
- _isLayoutValid
- _manager
- _modalParent
- _setMinHeightNative
- _setMinWidthNative
- accessibilityBlurEvent
- accessibilityFocusChangedEvent
- accessibilityFocusEvent
- accessibilityHint
- accessibilityIdentifier
- accessibilityLabel
- accessibilityPerformEscapeEvent
- accessibilityValue
- ignoreTouchAnimation
- iosIgnoreSafeArea
- iosOverflowSafeArea
- iosOverflowSafeAreaEnabled
- isEnabled
- isUserInteractionEnabled
- layoutChangedEvent
- originX
- originY
- showingModallyEvent
- shownModallyEvent
- testID
- touchAnimation
- touchDelay
- transitionId
69 properties inherited from ViewBase
Click to expand
- _automaticallyAdjustsScrollViewInsets
- _context
- _cssState
- _defaultPaddingBottom
- _defaultPaddingLeft
- _defaultPaddingRight
- _defaultPaddingTop
- _domId
- _ignoreFlexMinWidthHeightReset
- _isAddedToNativeVisualTree
- _isPaddingRelative
- _isStyleScopeHost
- _oldBottom
- _oldLeft
- _oldRight
- _oldTop
- _styleScope
- _suspendNativeUpdatesCount
- alignSelf
- bindingContext
- className
- col
- colSpan
- column
- columnSpan
- createdEvent
- cssClasses
- cssPseudoClasses
- disposeNativeViewEvent
- dock
- domNode
- effectiveBorderBottomWidth
- effectiveBorderLeftWidth
- effectiveBorderRightWidth
- effectiveBorderTopWidth
- effectiveHeight
- effectiveLeft
- effectiveMarginBottom
- effectiveMarginLeft
- effectiveMarginRight
- effectiveMarginTop
- effectiveMinHeight
- effectiveMinWidth
- effectivePaddingBottom
- effectivePaddingLeft
- effectivePaddingRight
- effectivePaddingTop
- effectiveTop
- effectiveWidth
- flexGrow
- flexShrink
- flexWrapBefore
- id
- isCollapsed
- left
- loadedEvent
- nativeViewProtected
- order
- parent
- propertyChangeEvent
- recycleNativeView
- reusable
- row
- rowSpan
- sharedTransitionIgnore
- sharedTransitionTag
- top
- unloadedEvent
- viewController
Accessors
- accessibilityHidden
- accessibilityLanguage
- accessibilityLiveRegion
- accessibilityMediaSession
- accessibilityRole
- accessibilityState
- accessible
- androidDynamicElevationOffset
- androidElevation
- automationText
- background
- backgroundColor
- backgroundImage
- backgroundPosition
- backgroundRepeat
- backgroundSize
- borderBottomColor
- borderBottomLeftRadius
- borderBottomRightRadius
- borderBottomWidth
- borderColor
- borderLeftColor
- borderLeftWidth
- borderRadius
- borderRightColor
- borderRightWidth
- borderTopColor
- borderTopLeftRadius
- borderTopRightRadius
- borderTopWidth
- borderWidth
- boxShadow
- color
- css
- cssType
- height
- horizontalAlignment
- iosAccessibilityAdjustsFontSize
- iosAccessibilityMaxFontScale
- iosAccessibilityMinFontScale
- isLayoutRequired
- isLayoutValid
- margin
- marginBottom
- marginLeft
- marginRight
- marginTop
- minHeight
- minWidth
- modal
- opacity
- perspective
- rotate
- rotateX
- rotateY
- scaleX
- scaleY
- textTransform
- translateX
- translateY
- verticalAlignment
- visibility
- width
9 accessors inherited from ViewBase
Click to expand
Methods
- _applyBackground
- _closeAllModalViewsInternal
- _eachLayoutView
- _getCurrentLayoutBounds
- _getFragmentManager
- _getNativeViewsCount
- _getRootModalViews
- _getValue
- _handleLivesync
- _hasAncestorView
- _hideNativeModalView
- _observe
- _onAttachedToWindow
- _onDetachedFromWindow
- _onLivesync
- _raiseLayoutChangedEvent
- _raiseShowingModallyEvent
- _raiseShownModallyEvent
- _redrawNativeBackground
- _removeAnimation
- _setCurrentLayoutBounds
- _setCurrentMeasureSpecs
- _setNativeClipToBounds
- _setNativeViewFrame
- _setupAsRootView
- _setValue
- _showNativeModalView
- _updateEffectiveLayoutValues
- _updateStyleScope
- accessibilityAnnouncement
- accessibilityScreenChanged
- addCss
- addCssFile
- addEventListener
- animate
- changeCssFile
- closeModal
- combineMeasuredStates
- createAnimation
- eachChild
- eachChildView
- focus
- getActualSize
- getGestureObservers
- getLocationInWindow
- getLocationOnScreen
- getLocationRelativeTo
- getMeasuredHeight
- getMeasuredState
- getMeasuredWidth
- getSafeAreaInsets
- layout
- layoutChild
- layoutNativeView
- measure
- measureChild
- onBackPressed
- onLayout
- onLoaded
- onMeasure
- removeEventListener
- requestLayout
- resetNativeView
- resolveSizeAndState
- sendAccessibilityEvent
- setMeasuredDimension
- setTestID
- showModal
56 methods inherited from ViewBase
Click to expand
- _addView
- _addViewCore
- _addViewToNativeVisualTree
- _applyXmlAttribute
- _batchUpdate
- _childIndexToNativeChildIndex
- _createPropertyChangeData
- _dialogClosed
- _emit
- _goToVisualState
- _inheritStyleScope
- _layoutParent
- _onRootViewReset
- _parentChanged
- _removeView
- _removeViewCore
- _removeViewFromNativeVisualTree
- _resumeNativeUpdates
- _setupUI
- _shouldDelayLayout
- _suspendNativeUpdates
- _tearDownUI
- addEventListener
- addPseudoClass
- bind
- callLoaded
- callUnloaded
- createNativeView
- deletePseudoClass
- destroyNode
- disposeNativeView
- ensureDomNode
- get
- getViewByDomId
- getViewById
- hasListeners
- initNativeView
- loadView
- notify
- notifyPropertyChange
- off
- off
- on
- on
- once
- once
- onResumeNativeUpdates
- onUnloaded
- removeEventListener
- set
- setInlineStyle
- setNativeView
- setProperty
- toString
- unbind
- unloadView
Constructors β
constructor β
new ViewCommon(): ViewCommon
inherited from
Returns ViewCommon
Properties β
_androidContentDescriptionUpdated β
_closeModalCallback β
Protected
_currentHeightMeasureSpec β
_currentWidthMeasureSpec β
_gestureObservers β
_isLayoutValid β
Protected
_manager β
_modalParent β
_modalParent: ViewCommon
_setMinHeightNative β
_setMinHeightNative: (value: LengthType) => void
_setMinWidthNative β
_setMinWidthNative: (value: LengthType) => void
accessibilityHint β
accessibilityIdentifier β
accessibilityLabel β
accessibilityValue β
ignoreTouchAnimation β
iosIgnoreSafeArea β
iosOverflowSafeArea β
iosOverflowSafeAreaEnabled β
isEnabled β
isUserInteractionEnabled β
originX β
originY β
testID β
touchAnimation β
touchAnimation: boolean | TouchAnimationOptions
touchDelay β
transitionId β
Active transition instance id for tracking state
accessibilityBlurEvent β
Static
accessibilityFocusChangedEvent β
Static
accessibilityFocusEvent β
Static
accessibilityPerformEscapeEvent β
Static
layoutChangedEvent β
Static
showingModallyEvent β
Static
shownModallyEvent β
Static
Accessors β
accessibilityHidden β
get accessibilityHidden(): boolean
Returns boolean
accessibilityLanguage β
Returns string
accessibilityLiveRegion β
get accessibilityLiveRegion(): AccessibilityLiveRegion
Returns AccessibilityLiveRegion
accessibilityMediaSession β
Returns boolean
accessibilityRole β
get accessibilityRole(): AccessibilityRole
Returns AccessibilityRole
accessibilityState β
get accessibilityState(): AccessibilityState
Returns AccessibilityState
accessible β
Returns boolean
androidDynamicElevationOffset β
Returns number
androidElevation β
Returns number
automationText β
Returns string
background β
Returns string
backgroundImage β
Returns string | LinearGradient
backgroundPosition β
Returns string
backgroundRepeat β
get backgroundRepeat(): BackgroundRepeatType
Returns BackgroundRepeatType
backgroundSize β
Returns string
borderBottomLeftRadius β
get borderBottomLeftRadius(): LengthType
Returns LengthType
borderBottomRightRadius β
get borderBottomRightRadius(): LengthType
Returns LengthType
borderBottomWidth β
get borderBottomWidth(): LengthType
Returns LengthType
borderLeftWidth β
get borderLeftWidth(): LengthType
Returns LengthType
borderRadius β
get borderRadius(): string | number | LengthDipUnit | LengthPxUnit
Returns string | number | LengthDipUnit | LengthPxUnit
borderRightWidth β
get borderRightWidth(): LengthType
Returns LengthType
borderTopLeftRadius β
get borderTopLeftRadius(): LengthType
Returns LengthType
borderTopRightRadius β
get borderTopRightRadius(): LengthType
Returns LengthType
borderTopWidth β
get borderTopWidth(): LengthType
Returns LengthType
borderWidth β
get borderWidth(): string | number | LengthDipUnit | LengthPxUnit
Returns string | number | LengthDipUnit | LengthPxUnit
boxShadow β
Returns CSSShadow
css β
Returns string
cssType β
Returns string
height β
get height(): PercentLengthType
Returns PercentLengthType
horizontalAlignment β
get horizontalAlignment(): HorizontalAlignmentType
Returns HorizontalAlignmentType
iosAccessibilityAdjustsFontSize β
Returns boolean
iosAccessibilityMaxFontScale β
Returns number
iosAccessibilityMinFontScale β
Returns number
isLayoutRequired β
Returns boolean
isLayoutValid β
Returns boolean
margin β
get margin(): string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit
Returns string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit
marginBottom β
get marginBottom(): PercentLengthType
Returns PercentLengthType
marginLeft β
get marginLeft(): PercentLengthType
Returns PercentLengthType
marginRight β
get marginRight(): PercentLengthType
Returns PercentLengthType
marginTop β
get marginTop(): PercentLengthType
Returns PercentLengthType
minHeight β
get minHeight(): LengthType
Returns LengthType
minWidth β
get minWidth(): LengthType
Returns LengthType
modal β
get modal(): ViewCommon
Returns ViewCommon
opacity β
Returns number
perspective β
Returns number
rotate β
Returns number
rotateX β
Returns number
rotateY β
Returns number
scaleX β
Returns number
scaleY β
Returns number
textTransform β
get textTransform(): TextTransformType
Returns TextTransformType
translateX β
Returns number
translateY β
Returns number
verticalAlignment β
get verticalAlignment(): VerticalAlignmentType
Returns VerticalAlignmentType
visibility β
get visibility(): VisibilityType
Returns VisibilityType
width β
get width(): PercentLengthType
Returns PercentLengthType
Methods β
_applyBackground β
_closeAllModalViewsInternal β
Returns boolean
_eachLayoutView β
Parameter Default Description
callback
(View: any) => void
Returns void
_getCurrentLayoutBounds β
Returns {
bottom: number
left: number
right: number
}
_getFragmentManager β
Returns any
_getNativeViewsCount β
Returns number
_getValue β
Returns never
_handleLivesync β
Parameter Default Description
context
ModuleContext
Returns boolean
_hasAncestorView β
_hasAncestorView(ancestorView: View): boolean
Parameter Default Description
ancestorView
Returns boolean
_hideNativeModalView β
Protected
_hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void
Returns void
_observe β
_observe(type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void
Returns void
_onAttachedToWindow β
Returns void
_onDetachedFromWindow β
Returns void
_onLivesync β
Parameter Default Description
context
ModuleContext
Returns boolean
_raiseLayoutChangedEvent β
Protected
Returns void
_raiseShowingModallyEvent β
Protected
Returns void
_raiseShownModallyEvent β
Protected
Returns void
_redrawNativeBackground β
Parameter Default Description
value
any
Returns void
_removeAnimation β
_removeAnimation(animation: Animation): boolean
Parameter Default Description
animation
Returns boolean
_setCurrentLayoutBounds β
_setCurrentLayoutBounds(
left: number,
top: number,
right: number,
bottom: number
): {
boundsChanged: boolean
}
Returns two booleans - the first if "boundsChanged" the second is "sizeChanged".
Parameter Default Description
left
number
top
number
right
number
bottom
number
Returns {
boundsChanged: boolean
}
_setCurrentMeasureSpecs β
Parameter Default Description
widthMeasureSpec
number
heightMeasureSpec
number
Returns boolean
_setNativeClipToBounds β
Returns void
_setNativeViewFrame β
Parameter Default Description
nativeView
any
frame
any
Returns void
_setValue β
Returns never
_setupAsRootView β
Parameter Default Description
context
any
Returns void
_showNativeModalView β
Protected
_showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void
Returns void
_updateEffectiveLayoutValues β
_updateEffectiveLayoutValues(
parentWidthMeasureSize: number,
parentWidthMeasureMode: number,
parentHeightMeasureSize: number,
parentHeightMeasureMode: number
): void
Parameter Default Description
parentWidthMeasureSize
number
parentWidthMeasureMode
number
parentHeightMeasureSize
number
parentHeightMeasureMode
number
Returns void
_updateStyleScope β
Parameter Default Description
cssFileName
string
cssString
string
css
string
Returns void
accessibilityAnnouncement β
Parameter Default Description
msg
string
Returns void
accessibilityScreenChanged β
Returns void
addCss β
Parameter Default Description
cssString
string
Returns void
addCssFile β
Parameter Default Description
cssFileName
string
Returns void
addEventListener β
addEventListener(arg: string | GestureTypes, callback: (data: EventData) => void, thisArg?: any): void
Parameter Default Description
arg
string | GestureTypes
callback
(data: EventData) => void
thisArg
any
Returns void
animate β
Parameter Default Description
animation
any
Returns AnimationPromise
changeCssFile β
Parameter Default Description
cssFileName
string
Returns void
closeModal β
Parameter Default Description
args
any[]
Returns void
createAnimation β
eachChild β
eachChildView β
focus β
Returns boolean
getGestureObservers β
getGestureObservers(type: GestureTypes): GesturesObserver[]
Parameter Default Description
type
Returns GesturesObserver[]
getLocationInWindow β
Returns Point
getLocationOnScreen β
Returns Point
getLocationRelativeTo β
getLocationRelativeTo(otherView: View): Point
Parameter Default Description
otherView
Returns Point
getMeasuredHeight β
Returns number
getMeasuredState β
Returns number
getMeasuredWidth β
Returns number
getSafeAreaInsets β
Returns {
bottom: any
left: any
right: any
}
layout β
Parameter Default Description
left
number
top
number
right
number
bottom
number
Returns void
layoutNativeView β
Abstract
Parameter Default Description
left
number
top
number
right
number
bottom
number
Returns void
measure β
Parameter Default Description
widthMeasureSpec
number
heightMeasureSpec
number
Returns void
onBackPressed β
Returns boolean
onLayout β
Abstract
Parameter Default Description
left
number
top
number
right
number
bottom
number
Returns void
onLoaded β
Returns void
onMeasure β
Abstract
Parameter Default Description
widthMeasureSpec
number
heightMeasureSpec
number
Returns void
removeEventListener β
removeEventListener(arg: string | GestureTypes, callback?: (data: EventData) => void, thisArg?: any): void
Parameter Default Description
arg
string | GestureTypes
callback
(data: EventData) => void
thisArg
any
Returns void
requestLayout β
Returns void
resetNativeView β
Returns void
sendAccessibilityEvent β
Parameter Default Description
options
Partial<AccessibilityEventOptions>
Returns void
setMeasuredDimension β
Parameter Default Description
measuredWidth
number
measuredHeight
number
Returns void
setTestID β
Parameter Default Description
view
any
value
string
Returns void
combineMeasuredStates β
Static
Parameter Default Description
curState
number
newState
any
Returns number
layoutChild β
Static
measureChild β
Static
measureChild(parent: ViewCommon, child: ViewCommon, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number }
Parameter Default Description
parent
child
widthMeasureSpec
number
heightMeasureSpec
number
Returns {
measuredHeight: number
}
resolveSizeAndState β
Static
- Previous
- ViewBase
- Next
- ViewHelper
On this page
- Summary
- Constructors
- Properties
- _androidContentDescriptionUpdated
- _closeModalCallback
- _currentHeightMeasureSpec
- _currentWidthMeasureSpec
- _gestureObservers
- _isLayoutValid
- _manager
- _modalParent
- _setMinHeightNative
- _setMinWidthNative
- accessibilityHint
- accessibilityIdentifier
- accessibilityLabel
- accessibilityValue
- ignoreTouchAnimation
- iosIgnoreSafeArea
- iosOverflowSafeArea
- iosOverflowSafeAreaEnabled
- isEnabled
- isUserInteractionEnabled
- originX
- originY
- testID
- touchAnimation
- touchDelay
- transitionId
- accessibilityBlurEvent
- accessibilityFocusChangedEvent
- accessibilityFocusEvent
- accessibilityPerformEscapeEvent
- layoutChangedEvent
- showingModallyEvent
- shownModallyEvent
- Accessors
- accessibilityHidden
- accessibilityLanguage
- accessibilityLiveRegion
- accessibilityMediaSession
- accessibilityRole
- accessibilityState
- accessible
- androidDynamicElevationOffset
- androidElevation
- automationText
- background
- backgroundColor
- backgroundImage
- backgroundPosition
- backgroundRepeat
- backgroundSize
- borderBottomColor
- borderBottomLeftRadius
- borderBottomRightRadius
- borderBottomWidth
- borderColor
- borderLeftColor
- borderLeftWidth
- borderRadius
- borderRightColor
- borderRightWidth
- borderTopColor
- borderTopLeftRadius
- borderTopRightRadius
- borderTopWidth
- borderWidth
- boxShadow
- color
- css
- cssType
- height
- horizontalAlignment
- iosAccessibilityAdjustsFontSize
- iosAccessibilityMaxFontScale
- iosAccessibilityMinFontScale
- isLayoutRequired
- isLayoutValid
- margin
- marginBottom
- marginLeft
- marginRight
- marginTop
- minHeight
- minWidth
- modal
- opacity
- perspective
- rotate
- rotateX
- rotateY
- scaleX
- scaleY
- textTransform
- translateX
- translateY
- verticalAlignment
- visibility
- width
- Methods
- _applyBackground
- _closeAllModalViewsInternal
- _eachLayoutView
- _getCurrentLayoutBounds
- _getFragmentManager
- _getNativeViewsCount
- _getRootModalViews
- _getValue
- _handleLivesync
- _hasAncestorView
- _hideNativeModalView
- _observe
- _onAttachedToWindow
- _onDetachedFromWindow
- _onLivesync
- _raiseLayoutChangedEvent
- _raiseShowingModallyEvent
- _raiseShownModallyEvent
- _redrawNativeBackground
- _removeAnimation
- _setCurrentLayoutBounds
- _setCurrentMeasureSpecs
- _setNativeClipToBounds
- _setNativeViewFrame
- _setValue
- _setupAsRootView
- _showNativeModalView
- _updateEffectiveLayoutValues
- _updateStyleScope
- accessibilityAnnouncement
- accessibilityScreenChanged
- addCss
- addCssFile
- addEventListener
- animate
- changeCssFile
- closeModal
- createAnimation
- eachChild
- eachChildView
- focus
- getActualSize
- getGestureObservers
- getLocationInWindow
- getLocationOnScreen
- getLocationRelativeTo
- getMeasuredHeight
- getMeasuredState
- getMeasuredWidth
- getSafeAreaInsets
- layout
- layoutNativeView
- measure
- onBackPressed
- onLayout
- onLoaded
- onMeasure
- removeEventListener
- requestLayout
- resetNativeView
- sendAccessibilityEvent
- setMeasuredDimension
- setTestID
- showModal
- combineMeasuredStates
- layoutChild
- measureChild
- resolveSizeAndState