Merge pull request #24662 from brunolemos/patch-9

[react-navigation] Add SafeAreaView export
This commit is contained in:
Paul van Brenk
2018-04-03 11:26:20 -07:00
committed by GitHub

View File

@@ -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>;