about summary refs log tree commit diff
path: root/src/alf/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/alf/types.ts')
-rw-r--r--src/alf/types.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/alf/types.ts b/src/alf/types.ts
index 76ac05d40..dd8d816d2 100644
--- a/src/alf/types.ts
+++ b/src/alf/types.ts
@@ -1,3 +1,5 @@
+import {StyleProp, ViewStyle, TextStyle} from 'react-native'
+
 type LiteralToCommon<T extends PropertyKey> = T extends number
   ? number
   : T extends string
@@ -14,3 +16,11 @@ export type Mutable<T> = {
     ? LiteralToCommon<T[K]>
     : Mutable<T[K]>
 }
+
+export type TextStyleProp = {
+  style?: StyleProp<TextStyle>
+}
+
+export type ViewStyleProp = {
+  style?: StyleProp<ViewStyle>
+}