More props | NativeBase | Universal Components for React and React Native

Data Display
Typography
Disclosure
Media and Icons
Others
More props
ILinearGradientProps
Name
Type
Description
Default
colors
Array<string>
An array of colors that represent stops in the gradient.
-
start
Array<number>
This means that the gradient will start from first value from the left and second value from the top. Array can contain numbers ranging from 0 to 1.
end
Array<number>
This means that the gradient will end at first value from the left and at second value from the bottom. Array can contain numbers ranging from 0 to 1.
location
Array<number>
Each number indicates a color-stop location where each respective color should be located. Array can contain numbers ranging from 0 to 1.
Nativebase logo
MadeWithNativeBase