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:
Satyajit Sahoo
2019-05-13 14:40:47 +02:00
committed by Michał Osadnik
parent 0d082ad985
commit acf80e640c

4
src/screens.d.ts vendored
View File

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