about summary refs log tree commit diff
path: root/src/components/GradientFill.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/GradientFill.tsx')
-rw-r--r--src/components/GradientFill.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/GradientFill.tsx b/src/components/GradientFill.tsx
index 3dff404d7..9ad6ed7dc 100644
--- a/src/components/GradientFill.tsx
+++ b/src/components/GradientFill.tsx
@@ -1,11 +1,13 @@
 import {LinearGradient} from 'expo-linear-gradient'
 
-import {atoms as a, tokens} from '#/alf'
+import {atoms as a, tokens, ViewStyleProp} from '#/alf'
 
 export function GradientFill({
   gradient,
-}: {
+  style,
+}: ViewStyleProp & {
   gradient:
+    | typeof tokens.gradients.primary
     | typeof tokens.gradients.sky
     | typeof tokens.gradients.midnight
     | typeof tokens.gradients.sunrise
@@ -26,7 +28,7 @@ export function GradientFill({
       }
       start={{x: 0, y: 0}}
       end={{x: 1, y: 1}}
-      style={[a.absolute, a.inset_0]}
+      style={[a.absolute, a.inset_0, style]}
     />
   )
 }