mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 22:47:02 +08:00
Fix type of active prop in typescript definitions (#97)
The TS definitions specify the prop as a boolean, but passing a boolean causes a crash.
This commit is contained in:
committed by
Michał Osadnik
parent
0d082ad985
commit
acf80e640c
4
src/screens.d.ts
vendored
4
src/screens.d.ts
vendored
@@ -3,13 +3,13 @@
|
||||
|
||||
declare module 'react-native-screens' {
|
||||
import { ComponentClass } from 'react';
|
||||
import { ViewProps } from 'react-native';
|
||||
import { ViewProps, Animated } from 'react-native';
|
||||
|
||||
export function useScreens(shouldUseScreens?: boolean): void;
|
||||
export function screensEnabled(): boolean;
|
||||
|
||||
export interface ScreenProps extends ViewProps {
|
||||
active?: boolean;
|
||||
active?: 0 | 1 | Animated.AnimatedInterpolation;
|
||||
onComponentRef?: (view: any) => void;
|
||||
}
|
||||
export const Screen: ComponentClass<ScreenProps>;
|
||||
|
||||
Reference in New Issue
Block a user