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

Search
K
Hire us
Data Display
Typography
Disclosure
Media and Icons
Others
If you are starting a new project, please try gluestack-ui for better performance and new design.
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