Properties for the Ads component.

Hierarchy

Properties

checked: boolean

Indicates that the element was selected

Example:

   * <Ads checked={true} />
height?: string

Sets the element height

Example:

   * <Ads height={100} />
id?: string

"Fills the ID of the element (not very practical)."

Example:

 <View id="id" />
maxHeight?: string | number

Adjust component maximum height

Example:

   <maxHeight={100} />
maxWidth?: string | number

Adjust component maximum width

Example:

   <maxwidth={100} />
minHeight?: string | number

Adjust component minimum height

Example:

   <minHeight={100} />
minWidth?: string | number

Adjust component minimum width

Example:

   <minWidth={100} />
path: string

Key that distinguishes an ad.

Example:

<Ads path="/22158792083/MINIAPP_BANNERTEST/ad1" width={300} height={250} />
targetKey: string

The key-value to be passed to the ad.

Example:

<Ads targetKey="myTargetKey" />
targetValue: string

The key-value to be passed to the ad.

Example:

   * <Ads targetValue="myTargeValue" />
transform?: string

"Prepare a position transforming of element"

Example:

 <View transform="rotate(45deg)" />
transition?: string

"Prepare a transition of visual state change"

Example:

 <View transition="background-color 0.5s ease-in-out" />
visualState?: "success" | "danger" | "warning"

"Determines the visual state of the component and its children."

Example:

 <View visualState="success" />
width?: string

Sets the element width

Example:

   * <Ads width={100} />