about summary refs log tree commit diff
path: root/src/components/Fill.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Fill.tsx')
-rw-r--r--src/components/Fill.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/Fill.tsx b/src/components/Fill.tsx
new file mode 100644
index 000000000..ac74f1660
--- /dev/null
+++ b/src/components/Fill.tsx
@@ -0,0 +1,11 @@
+import React from 'react'
+import {View} from 'react-native'
+
+import {atoms as a, ViewStyleProp} from '#/alf'
+
+export function Fill({
+  children,
+  style,
+}: {children?: React.ReactNode} & ViewStyleProp) {
+  return <View style={[a.absolute, a.inset_0, style]}>{children}</View>
+}