mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Merge pull request #24662 from brunolemos/patch-9
[react-navigation] Add SafeAreaView export
This commit is contained in:
18
types/react-navigation/index.d.ts
vendored
18
types/react-navigation/index.d.ts
vendored
@@ -31,6 +31,7 @@ import * as React from 'react';
|
||||
import {
|
||||
Animated,
|
||||
TextStyle,
|
||||
ViewProperties,
|
||||
ViewStyle,
|
||||
StyleProp,
|
||||
} from 'react-native';
|
||||
@@ -906,3 +907,20 @@ export function withNavigation<T = {}>(
|
||||
export function withNavigationFocus<T = {}>(
|
||||
Component: React.ComponentType<T & NavigationInjectedProps>
|
||||
): React.ComponentType<T>;
|
||||
|
||||
/**
|
||||
* SafeAreaView Component
|
||||
*/
|
||||
export type SafeAreaViewForceInsetValue = 'always' | 'never';
|
||||
export interface SafeAreaViewProps extends ViewProperties {
|
||||
forceInset?: {
|
||||
top?: SafeAreaViewForceInsetValue;
|
||||
bottom?: SafeAreaViewForceInsetValue;
|
||||
left?: SafeAreaViewForceInsetValue;
|
||||
right?: SafeAreaViewForceInsetValue;
|
||||
horizontal?: SafeAreaViewForceInsetValue;
|
||||
vertical?: SafeAreaViewForceInsetValue;
|
||||
};
|
||||
}
|
||||
|
||||
export const SafeAreaView: React.ComponentClass<SafeAreaViewProps>;
|
||||
|
||||
Reference in New Issue
Block a user