Skip to content
This repository was archived by the owner on Jan 30, 2021. It is now read-only.

Commit bf7405b

Browse files
authored
Merge pull request #77 from swansontec/patch-1
Add `getInset` to the Flow types
2 parents 1a91fef + 33742be commit bf7405b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js.flow

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ export default class SafeAreaView extends React$Component<SafeAreaViewProps> {}
2222
declare export function withSafeArea(
2323
forceInset?: ?ForceInset
2424
): <T: React$ComponentType<*>>(WrappedComponent: T) => T;
25+
26+
declare export function getInset(
27+
value: 'horizontal' | 'right' | 'left' | 'vertical' | 'top' | 'bottom',
28+
isLandscape: boolean
29+
): number

0 commit comments

Comments
 (0)