Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LayoutBase

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private _automaticallyAdjustsScrollViewInsets

_automaticallyAdjustsScrollViewInsets: boolean

_context

_context: any

_cssState

_cssState: any

Private _currentHeightMeasureSpec

_currentHeightMeasureSpec: number

Private _currentWidthMeasureSpec

_currentWidthMeasureSpec: number

Private _defaultPaddingBottom

_defaultPaddingBottom: number

Private _defaultPaddingLeft

_defaultPaddingLeft: number

Private _defaultPaddingRight

_defaultPaddingRight: number

Private _defaultPaddingTop

_defaultPaddingTop: number

_domId

_domId: number

Private _gestureObservers

_gestureObservers: any

Private _ignoreFlexMinWidthHeightReset

_ignoreFlexMinWidthHeightReset: boolean

_isAddedToNativeVisualTree

_isAddedToNativeVisualTree: boolean

Private _isPaddingRelative

_isPaddingRelative: boolean

Private _isStyleScopeHost

_isStyleScopeHost: boolean

Private _isViewBase

_isViewBase: boolean

Private _manager

_manager: any

Optional Private _modalParent

_modalParent: View

Optional Private _moduleName

_moduleName: string

Private _oldBottom

_oldBottom: number

Private _oldLeft

_oldLeft: number

Private _oldRight

_oldRight: number

Private _oldTop

_oldTop: number

_styleScope

_styleScope: any

_suspendNativeUpdatesCount

_suspendNativeUpdatesCount: number

Private _suspendedUpdates

_suspendedUpdates: object

Type declaration

alignSelf

alignSelf: AlignSelf

android

android: any

androidDynamicElevationOffset

androidDynamicElevationOffset: number

androidElevation

androidElevation: number

automationText

automationText: string

background

background: string

backgroundColor

backgroundColor: string | Color

backgroundImage

backgroundImage: string | LinearGradient

bindingContext

bindingContext: any

borderBottomColor

borderBottomColor: Color

borderBottomLeftRadius

borderBottomLeftRadius: Length

borderBottomRightRadius

borderBottomRightRadius: Length

borderBottomWidth

borderBottomWidth: Length

borderColor

borderColor: string | Color

borderLeftColor

borderLeftColor: Color

borderLeftWidth

borderLeftWidth: Length

borderRadius

borderRadius: string | Length

borderRightColor

borderRightColor: Color

borderRightWidth

borderRightWidth: Length

borderTopColor

borderTopColor: Color

borderTopLeftRadius

borderTopLeftRadius: Length

borderTopRightRadius

borderTopRightRadius: Length

borderTopWidth

borderTopWidth: Length

borderWidth

borderWidth: string | Length

className

className: string

clipToBounds

clipToBounds: boolean

col

col: number

colSpan

colSpan: number

color

color: Color

column

column: number

columnSpan

columnSpan: number

Private css

css: string

cssClasses

cssClasses: Set<string>

cssPseudoClasses

cssPseudoClasses: Set<string>

cssType

cssType: string

dock

dock: "left" | "top" | "right" | "bottom"

domNode

domNode: DOMNode

effectiveBorderBottomWidth

effectiveBorderBottomWidth: number

effectiveBorderLeftWidth

effectiveBorderLeftWidth: number

effectiveBorderRightWidth

effectiveBorderRightWidth: number

effectiveBorderTopWidth

effectiveBorderTopWidth: number

effectiveHeight

effectiveHeight: number

effectiveLeft

effectiveLeft: number

effectiveMarginBottom

effectiveMarginBottom: number

effectiveMarginLeft

effectiveMarginLeft: number

effectiveMarginRight

effectiveMarginRight: number

effectiveMarginTop

effectiveMarginTop: number

effectiveMinHeight

effectiveMinHeight: number

effectiveMinWidth

effectiveMinWidth: number

effectivePaddingBottom

effectivePaddingBottom: number

effectivePaddingLeft

effectivePaddingLeft: number

effectivePaddingRight

effectivePaddingRight: number

effectivePaddingTop

effectivePaddingTop: number

effectiveTop

effectiveTop: number

effectiveWidth

effectiveWidth: number

flexGrow

flexGrow: FlexGrow

flexShrink

flexShrink: FlexShrink

flexWrapBefore

flexWrapBefore: FlexWrapBefore

height

horizontalAlignment

horizontalAlignment: HorizontalAlignment

id

id: string

ios

ios: any

iosOverflowSafeArea

iosOverflowSafeArea: boolean

iosOverflowSafeAreaEnabled

iosOverflowSafeAreaEnabled: boolean

isCollapsed

isCollapsed: boolean

isEnabled

isEnabled: boolean

Private isLayoutRequired

isLayoutRequired: boolean

isLayoutValid

isLayoutValid: boolean

isLoaded

isLoaded: boolean

isPassThroughParentEnabled

isPassThroughParentEnabled: boolean

isUserInteractionEnabled

isUserInteractionEnabled: boolean

left

left: Length

margin

margin: string | PercentLength

marginBottom

marginBottom: PercentLength

marginLeft

marginLeft: PercentLength

marginRight

marginRight: PercentLength

marginTop

marginTop: PercentLength

minHeight

minHeight: Length

minWidth

minWidth: Length

modal

modal: View

nativeView

nativeView: any

nativeViewProtected

nativeViewProtected: any

opacity

opacity: number

order

order: Order

originX

originX: number

originY

originY: number

padding

padding: string | Length

paddingBottom

paddingBottom: Length

paddingLeft

paddingLeft: Length

paddingRight

paddingRight: Length

paddingTop

paddingTop: Length

page

page: Page

parent

parent: ViewBase

parentNode

parentNode: ViewBase

perspective

perspective: number

Private recycleNativeView

recycleNativeView: "always" | "never" | "auto"

rotate

rotate: number

rotateX

rotateX: number

rotateY

rotateY: number

row

row: number

rowSpan

rowSpan: number

scaleX

scaleX: number

scaleY

scaleY: number

style

style: Style

top

top: Length

translateX

translateX: dip

translateY

translateY: dip

typeName

typeName: string

verticalAlignment

verticalAlignment: VerticalAlignment

viewController

viewController: any

visibility

visibility: Visibility

width

Static layoutChangedEvent

layoutChangedEvent: string

Static loadedEvent

loadedEvent: string

Static propertyChangeEvent

propertyChangeEvent: string

Static showingModallyEvent

showingModallyEvent: string

Static shownModallyEvent

shownModallyEvent: string

Static unloadedEvent

unloadedEvent: string

Methods

_addView

  • _addView(view: ViewBase, atIndex?: number): void
  • Parameters

    • view: ViewBase
    • Optional atIndex: number

    Returns void

_addViewCore

  • _addViewCore(view: ViewBase, atIndex?: number): void
  • Parameters

    • view: ViewBase
    • Optional atIndex: number

    Returns void

_addViewToNativeVisualTree

  • _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean

_batchUpdate

  • _batchUpdate<T>(callback: function): T
  • Type parameters

    • T

    Parameters

    • callback: function
        • (): T
        • Returns T

    Returns T

_childIndexToNativeChildIndex

  • _childIndexToNativeChildIndex(index?: number): number

_closeAllModalViewsInternal

  • _closeAllModalViewsInternal(): boolean

Private _createPropertyChangeData

_dialogClosed

  • _dialogClosed(): void

_eachLayoutView

  • _eachLayoutView(callback: function): void
  • Parameters

    • callback: function
        • (View: any): void
        • Parameters

          • View: any

          Returns void

    Returns void

Private _emit

  • _emit(eventNames: string): any
  • Parameters

    • eventNames: string

    Returns any

Private _getCurrentLayoutBounds

  • _getCurrentLayoutBounds(): object
  • Returns object

    • bottom: number
    • left: number
    • right: number
    • top: number

Private _getFragmentManager

  • _getFragmentManager(): any

_getNativeViewsCount

  • _getNativeViewsCount(): number

_getRootModalViews

_getValue

  • _getValue(property: any): never
  • Parameters

    • property: any

    Returns never

Private _goToVisualState

  • _goToVisualState(state: string): any

_handleLivesync

  • _handleLivesync(context?: object): boolean
  • Parameters

    • Optional context: object
      • path: string
      • type: string

    Returns boolean

_hasAncestorView

  • _hasAncestorView(ancestorView: View): boolean
  • Parameters

    • ancestorView: View

    Returns boolean

Private _inheritStyleScope

  • _inheritStyleScope(styleScope: any): void

Private _layoutParent

  • _layoutParent(): void

_onAttachedToWindow

  • _onAttachedToWindow(): void

Private _onCssStateChange

  • _onCssStateChange(): void

_onDetachedFromWindow

  • _onDetachedFromWindow(): void

Private _onLivesync

  • _onLivesync(context?: object): boolean
  • Parameters

    • Optional context: object
      • path: string
      • type: string

    Returns boolean

_onRootViewReset

  • _onRootViewReset(): void

_parentChanged

  • _parentChanged(oldParent: ViewBase): void

Private _redrawNativeBackground

  • _redrawNativeBackground(value: any): void

_registerLayoutChild

  • _registerLayoutChild(child: View): void
  • Parameters

    Returns void

Private _removeAnimation

  • _removeAnimation(animation: Animation): boolean

_removeView

_removeViewCore

_removeViewFromNativeVisualTree

  • _removeViewFromNativeVisualTree(view: ViewBase): void

Private _setChildMinHeightNative

  • _setChildMinHeightNative(child: View, value: Length): void

Private _setChildMinWidthNative

  • _setChildMinWidthNative(child: View, value: Length): void

Private _setCurrentLayoutBounds

  • _setCurrentLayoutBounds(left: number, top: number, right: number, bottom: number): object
  • Parameters

    • left: number
    • top: number
    • right: number
    • bottom: number

    Returns object

    • boundsChanged: boolean
    • sizeChanged: boolean

Private _setCurrentMeasureSpecs

  • _setCurrentMeasureSpecs(widthMeasureSpec: number, heightMeasureSpec: number): boolean
  • Parameters

    • widthMeasureSpec: number
    • heightMeasureSpec: number

    Returns boolean

Private _setMinHeightNative

  • _setMinHeightNative(value: Length): void

Private _setMinWidthNative

  • _setMinWidthNative(value: Length): void

Private _setNativeClipToBounds

  • _setNativeClipToBounds(): void

Private _setNativeViewFrame

  • _setNativeViewFrame(nativeView: any, frame: any): void
  • Parameters

    • nativeView: any
    • frame: any

    Returns void

_setValue

  • _setValue(property: any, value: any): never
  • Parameters

    • property: any
    • value: any

    Returns never

Private _setupAsRootView

  • _setupAsRootView(context: any): void

_setupUI

  • _setupUI(context: any, atIndex?: number): void
  • Parameters

    • context: any
    • Optional atIndex: number

    Returns void

_shouldDelayLayout

  • _shouldDelayLayout(): boolean

_tearDownUI

  • _tearDownUI(force?: boolean): void
  • Parameters

    • Optional force: boolean

    Returns void

_unregisterLayoutChild

  • _unregisterLayoutChild(child: View): void
  • Parameters

    Returns void

Private _updateEffectiveLayoutValues

  • _updateEffectiveLayoutValues(parentWidthMeasureSize: number, parentWidthMeasureMode: number, parentHeightMeasureSize: number, parentHeightMeasureMode: number): void
  • Parameters

    • parentWidthMeasureSize: number
    • parentWidthMeasureMode: number
    • parentHeightMeasureSize: number
    • parentHeightMeasureMode: number

    Returns void

Private _updateNativeLayoutParams

  • _updateNativeLayoutParams(child: View): void

_updateStyleScope

  • _updateStyleScope(cssFileName?: string, cssString?: string, css?: string): void
  • Parameters

    • Optional cssFileName: string
    • Optional cssString: string
    • Optional css: string

    Returns void

addChild

  • addChild(view: View): void
  • Parameters

    Returns void

Private addCss

  • addCss(cssString: string): void
  • Parameters

    • cssString: string

    Returns void

Private addCssFile

  • addCssFile(cssFileName: string): void
  • Parameters

    • cssFileName: string

    Returns void

addEventListener

  • addEventListener(eventNames: string, callback: function, thisArg?: any): any
  • Parameters

    • eventNames: string
    • callback: function
    • Optional thisArg: any

    Returns any

Protected addPseudoClass

  • addPseudoClass(name: string): void
  • Parameters

    • name: string

    Returns void

animate

bind

  • Parameters

    Returns void

Private callLoaded

  • callLoaded(): void

Private callUnloaded

  • callUnloaded(): void

Private changeCssFile

  • changeCssFile(cssFileName: string): void
  • Parameters

    • cssFileName: string

    Returns void

closeModal

  • closeModal(context?: any): void
  • Parameters

    • Optional context: any

    Returns void

createAnimation

createNativeView

  • createNativeView(): Object

Protected deletePseudoClass

  • deletePseudoClass(name: string): void

disposeNativeView

  • disposeNativeView(): void

eachChild

  • eachChild(callback: function): void
  • Parameters

    • callback: function

    Returns void

eachChildView

  • eachChildView(callback: function): void
  • Parameters

    • callback: function
        • (view: View): boolean
        • Parameters

          Returns boolean

    Returns void

eachLayoutChild

  • eachLayoutChild(callback: function): void
  • Parameters

    • callback: function
        • (child: View, isLast: boolean): void
        • Parameters

          • child: View
          • isLast: boolean

          Returns void

    Returns void

ensureDomNode

  • ensureDomNode(): any

focus

  • focus(): boolean
  • Returns boolean

get

  • get(name: string): any
  • Parameters

    • name: string

    Returns any

getActualSize

  • getActualSize(): Size

getChildAt

  • getChildAt(index: number): View
  • Parameters

    • index: number

    Returns View

getChildIndex

  • getChildIndex(child: View): number
  • Parameters

    Returns number

getChildrenCount

  • getChildrenCount(): number
  • Returns number

getGestureObservers

getLocationInWindow

  • getLocationInWindow(): Point

getLocationOnScreen

  • getLocationOnScreen(): Point

getLocationRelativeTo

  • getLocationRelativeTo(otherView: View): Point

getMeasuredHeight

  • getMeasuredHeight(): number

getMeasuredState

  • getMeasuredState(): number

getMeasuredWidth

  • getMeasuredWidth(): number

getSafeAreaInsets

  • getSafeAreaInsets(): object
  • Returns object

    • bottom: any
    • left: any
    • right: any
    • top: any

getViewById

  • getViewById<T>(id: string): T
  • Type parameters

    Parameters

    • id: string

    Returns T

hasListeners

  • hasListeners(eventName: string): boolean
  • Parameters

    • eventName: string

    Returns boolean

initNativeView

  • initNativeView(): void

insertChild

  • insertChild(child: View, atIndex: number): void
  • Parameters

    • child: View
    • atIndex: number

    Returns void

layout

  • layout(left: number, top: number, right: number, bottom: number, setFrame?: boolean): void
  • Parameters

    • left: number
    • top: number
    • right: number
    • bottom: number
    • Optional setFrame: boolean

    Returns void

layoutNativeView

  • layoutNativeView(left: number, top: number, right: number, bottom: number): void
  • Parameters

    • left: number
    • top: number
    • right: number
    • bottom: number

    Returns void

loadView

measure

  • measure(widthMeasureSpec: number, heightMeasureSpec: number): void
  • Parameters

    • widthMeasureSpec: number
    • heightMeasureSpec: number

    Returns void

notify

  • notify<T>(data: T): void
  • Type parameters

    Parameters

    • data: T

    Returns void

notifyPropertyChange

  • notifyPropertyChange(propertyName: string, value: any, oldValue?: any): void
  • Parameters

    • propertyName: string
    • value: any
    • Optional oldValue: any

    Returns void

off

  • off(eventNames: string | GestureTypes, callback?: function, thisArg?: any): any
  • Parameters

    Returns any

on

  • on(eventNames: string | GestureTypes, callback: function, thisArg?: any): any
  • on(event: "loaded", callback: function, thisArg?: any): any
  • on(event: "unloaded", callback: function, thisArg?: any): any
  • on(event: "androidBackPressed", callback: function, thisArg?: any): any
  • on(event: "showingModally", callback: function, thisArg?: any): void
  • on(event: "shownModally", callback: function, thisArg?: any): any
  • Parameters

    Returns any

  • Parameters

    • event: "loaded"
    • callback: function
    • Optional thisArg: any

    Returns any

  • Parameters

    • event: "unloaded"
    • callback: function
    • Optional thisArg: any

    Returns any

  • Parameters

    • event: "androidBackPressed"
    • callback: function
    • Optional thisArg: any

    Returns any

  • Parameters

    Returns void

  • Parameters

    Returns any

onBackPressed

  • onBackPressed(): boolean
  • Returns boolean

onLayout

  • onLayout(left: number, top: number, right: number, bottom: number): void
  • Parameters

    • left: number
    • top: number
    • right: number
    • bottom: number

    Returns void

onLoaded

  • onLoaded(): void
  • Returns void

onMeasure

  • onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void
  • Parameters

    • widthMeasureSpec: number
    • heightMeasureSpec: number

    Returns void

onResumeNativeUpdates

  • onResumeNativeUpdates(): void

onUnloaded

  • onUnloaded(): void

once

  • once(event: string, callback: function, thisArg?: any): any
  • Parameters

    • event: string
    • callback: function
    • Optional thisArg: any

    Returns any

removeChild

  • removeChild(view: View): void
  • Parameters

    Returns void

removeChildren

  • removeChildren(): void
  • Returns void

removeEventListener

  • removeEventListener(eventNames: string, callback?: any, thisArg?: any): any
  • Parameters

    • eventNames: string
    • Optional callback: any
    • Optional thisArg: any

    Returns any

requestLayout

  • requestLayout(): void

resetNativeView

  • resetNativeView(): void

set

  • set(name: string, value: any): void
  • Parameters

    • name: string
    • value: any

    Returns void

setInlineStyle

  • setInlineStyle(style: string): void
  • Parameters

    • style: string

    Returns void

setMeasuredDimension

  • setMeasuredDimension(measuredWidth: number, measuredHeight: number): void
  • Parameters

    • measuredWidth: number
    • measuredHeight: number

    Returns void

setNativeView

  • setNativeView(view: any): void
  • Parameters

    • view: any

    Returns void

setProperty

  • setProperty(name: string, value: any): void
  • Parameters

    • name: string
    • value: any

    Returns void

showModal

unbind

  • unbind(property: string): void
  • Parameters

    • property: string

    Returns void

unloadView

Static combineMeasuredStates

  • combineMeasuredStates(curState: number, newState: any): number
  • Parameters

    • curState: number
    • newState: any

    Returns number

Static layoutChild

  • layoutChild(parent: View, child: View, left: number, top: number, right: number, bottom: number): void
  • Parameters

    • parent: View
    • child: View
    • left: number
    • top: number
    • right: number
    • bottom: number

    Returns void

Static measureChild

  • measureChild(parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): object
  • Parameters

    • parent: View
    • child: View
    • widthMeasureSpec: number
    • heightMeasureSpec: number

    Returns object

    • measuredHeight: number
    • measuredWidth: number

Static resolveSizeAndState

  • resolveSizeAndState(size: number, specSize: number, specMode: number, childMeasuredState: number): number
  • Parameters

    • size: number
    • specSize: number
    • specMode: number
    • childMeasuredState: number

    Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method