A light object that emits ambient light that affects all objects equally. See our Lighting and Material Guide for more information on lights in a scene.
The color of the light. The default light color is white.
Valid color formats are:
This property is used to make lights apply to specific nodes. Lights and nodes in the scene can be assigned bit-masks to determine how each light influences each node.
During rendering, Viro compares each light's influenceBitMask with each node's lightReceivingBitMask and shadowCastingBitMask. The bit-masks are compared using a bitwise AND operation:
The default mask is 0x1.
The brightness of the light. Set to 1000 for normal intensity. The intensity is simply divided by 1000 and multiplied by the light's color.
Lower intensities will decrease the brightness of the light, and higher intensities will increase the brightness of the light.
The default intensity is 1000.
The temperature of the light, in Kelvin. Viro will derive a hue from this temperature and multiply it by the light's color. To model a physical light with a known temperature, you can leave the color of this Light set to (1.0, 1.0, 1.0) and set its temperature only.
The default value for temperature is 6500K, which represents pure white light.
A wrapper function around the native component's setNativeProps which allow users to set values on the native component without changing state/setting props and re-rendering. Refer to the React Native documentation on Direct Manipulation for more information.
For example, setting position natively would look like this:
Updated less than a minute ago