mirror of
https://github.com/expo/react-navigation-stack.git
synced 2026-11-14 19:12:11 -10:00
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
declare module '@react-navigation/native' {
|
|
import { ComponentType } from 'react';
|
|
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
|
|
export function createAppContainer<Props>(
|
|
Comp: React.ComponentType<Props>
|
|
): React.ComponentType<Props>;
|
|
|
|
export function withOrientation<Props extends { isLandscape: boolean }>(
|
|
Comp: React.ComponentType<Props>
|
|
): React.ComponentType<Pick<Props, Exclude<keyof Props, 'isLandscape'>>>;
|
|
|
|
export function createKeyboardAwareNavigator<Props>(
|
|
Comp: React.ComponentType<Props>,
|
|
stackConfig: object
|
|
): React.ComponentType<Props>;
|
|
|
|
export type SafeAreaViewForceInsetValue = 'always' | 'never';
|
|
|
|
export const SafeAreaView: ComponentType<
|
|
ViewProps & {
|
|
forceInset?: {
|
|
top?: SafeAreaViewForceInsetValue;
|
|
bottom?: SafeAreaViewForceInsetValue;
|
|
left?: SafeAreaViewForceInsetValue;
|
|
right?: SafeAreaViewForceInsetValue;
|
|
horizontal?: SafeAreaViewForceInsetValue;
|
|
vertical?: SafeAreaViewForceInsetValue;
|
|
};
|
|
}
|
|
>;
|
|
}
|