Class View<TEvent, TNative, TProps>

Type Parameters

Hierarchy

  • default<TEvent | ViewEvents, TNative, TProps>
    • View

Properties

_nativeObject: any
iOS: { SemanticContentAttribute: typeof SemanticContentAttribute } = ...

iOS Specific Properties.

Since

3.1.3

Type declaration

Events: { Touch: "touch"; TouchCancelled: "touchCancelled"; TouchEnded: "touchEnded"; TouchMoved: "touchMoved" } = ViewEvents

Type declaration

  • Touch: "touch"
  • TouchCancelled: "touchCancelled"
  • TouchEnded: "touchEnded"
  • TouchMoved: "touchMoved"
Border: typeof Border = Border

Accessors

  • get nativeObject(): any
  • Returns any

  • set nativeObject(value: any): void
  • Parameters

    • value: any

    Returns void

  • get ios(): TProps["ios"]
  • Returns TProps["ios"]

  • get android(): TProps["android"]
  • Returns TProps["android"]

Methods

  • Parameters

    • Optional params: Partial<Record<string, any>>

    Returns void

  • Parameters

    • props: WithMobileOSProps<TProps, { [key: string]: any }, { [key: string]: any }>["android"]

    Returns void

  • Parameters

    • props: WithMobileOSProps<TProps, { [key: string]: any }, { [key: string]: any }>["ios"]

    Returns void

  • Returns any

  • Parameters

    • eventName: "touch"
    • callback: ((e: Point2D) => void)

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • eventName: "touchEnded"
    • callback: ((e: { isInside: boolean } & Point2D) => void)
        • (e: { isInside: boolean } & Point2D): void
        • Parameters

          • e: { isInside: boolean } & Point2D

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • eventName: "touchMoved"
    • callback: ((e: { isInside: boolean } & Point2D) => void)
        • (e: { isInside: boolean } & Point2D): void
        • Parameters

          • e: { isInside: boolean } & Point2D

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • eventName: "touchCancelled"
    • callback: ((point: Point2D) => boolean)

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • eventName: TEvent
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • eventName: "touch" | "touchCancelled" | "touchEnded" | "touchMoved"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • eventName: "touch"
    • callback: ((e: Point2D) => void)

    Returns void

  • Parameters

    • eventName: "touchEnded"
    • callback: ((e: { isInside: boolean } & Point2D) => void)
        • (e: { isInside: boolean } & Point2D): void
        • Parameters

          • e: { isInside: boolean } & Point2D

          Returns void

    Returns void

  • Parameters

    • eventName: "touchMoved"
    • callback: ((e: { isInside: boolean } & Point2D) => void)
        • (e: { isInside: boolean } & Point2D): void
        • Parameters

          • e: { isInside: boolean } & Point2D

          Returns void

    Returns void

  • Parameters

    • eventName: "touchCancelled"
    • callback: ((point: Point2D) => boolean)

    Returns void

  • Parameters

    • eventName: TEvent
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

  • Parameters

    Returns void

  • Parameters

    • eventName: "touchEnded"
    • params: { isInside: boolean } & Point2D

    Returns void

  • Parameters

    • eventName: "touchMoved"
    • params: { isInside: boolean } & Point2D

    Returns void

  • Parameters

    • eventName: "touchCancelled"
    • point: Point2D

    Returns void

  • Parameters

    • eventName: TEvent
    • Rest ...args: any[]

    Returns void

  • Parameters

    • eventName: "touch"
    • callback: ((e: Point2D) => void)

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • eventName: "touchEnded"
    • callback: ((e: { isInside: boolean } & Point2D) => void)
        • (e: { isInside: boolean } & Point2D): void
        • Parameters

          • e: { isInside: boolean } & Point2D

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • eventName: "touchMoved"
    • callback: ((e: { isInside: boolean } & Point2D) => void)
        • (e: { isInside: boolean } & Point2D): void
        • Parameters

          • e: { isInside: boolean } & Point2D

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • eventName: "touchCancelled"
    • callback: ((point: Point2D) => boolean)

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • eventName: TEvent
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • eventName: "touch"
    • callback: ((e: Point2D) => void)

    Returns void

  • Parameters

    • eventName: "touchEnded"
    • callback: ((e: { isInside: boolean } & Point2D) => void)
        • (e: { isInside: boolean } & Point2D): void
        • Parameters

          • e: { isInside: boolean } & Point2D

          Returns void

    Returns void

  • Parameters

    • eventName: "touchMoved"
    • callback: ((e: { isInside: boolean } & Point2D) => void)
        • (e: { isInside: boolean } & Point2D): void
        • Parameters

          • e: { isInside: boolean } & Point2D

          Returns void

    Returns void

  • Parameters

    • eventName: "touchCancelled"
    • callback: ((point: Point2D) => boolean)

    Returns void

  • Parameters

    • eventName: TEvent
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

  • Parameters

    • eventName: "touch"
    • callback: ((e: Point2D) => void)

    Returns void

  • Parameters

    • eventName: "touchEnded"
    • callback: ((e: { isInside: boolean } & Point2D) => void)
        • (e: { isInside: boolean } & Point2D): void
        • Parameters

          • e: { isInside: boolean } & Point2D

          Returns void

    Returns void

  • Parameters

    • eventName: "touchMoved"
    • callback: ((e: { isInside: boolean } & Point2D) => void)
        • (e: { isInside: boolean } & Point2D): void
        • Parameters

          • e: { isInside: boolean } & Point2D

          Returns void

    Returns void

  • Parameters

    • eventName: "touchCancelled"
    • callback: ((point: Point2D) => boolean)

    Returns void

  • Parameters

    • eventName: TEvent
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

Constructors

  • Type Parameters

    Parameters

    • Optional params: Partial<TProps>

    Returns View<TEvent, TNative, TProps>

Generated using TypeDoc