Surface
Container for all other ART components.
render(){
return (
<Surface>
{ all other components }
</Surface>
)
}
Note that the <Surface/> element has default background color. You can remove it by using backgroundColor: 'transparent' in the node's style prop.
Props
Reference
Props
width
The width of the target surface
| Type | Required |
|---|---|
| number | No |
height
The height of the target surface
| Type | Required |
|---|---|
| number | No |
visible
The visibility of the object
| Type | Required |
|---|---|
| bool | No |