From 4480356e5dcd69171ce4d873e150bc18ff8749af Mon Sep 17 00:00:00 2001 From: Douglas Nassif Roma Junior Date: Sat, 6 Jun 2020 11:13:14 -0300 Subject: [PATCH] Fix index.d.ts --- ...t-native-simple-dialogs.d.ts => index.d.ts | 67 ++++++++++--------- package.json | 3 +- 2 files changed, 38 insertions(+), 32 deletions(-) rename react-native-simple-dialogs.d.ts => index.d.ts (54%) diff --git a/react-native-simple-dialogs.d.ts b/index.d.ts similarity index 54% rename from react-native-simple-dialogs.d.ts rename to index.d.ts index df79efe..ec21ceb 100644 --- a/react-native-simple-dialogs.d.ts +++ b/index.d.ts @@ -1,31 +1,28 @@ declare module 'react-native-simple-dialogs' { import * as React from 'react'; import { - View, - ViewProps, - Text, - Button, StyleProp, - ButtonProps, + ViewStyle, + TextStyle, } from 'react-native'; type animationType = 'none' | 'slide' | 'fade'; type supportedOrientationsType = - | 'portrait' - | 'portrait-upside-down' - | 'landscape' - | 'landscape-left' - | 'landscape-right'; + | 'portrait' + | 'portrait-upside-down' + | 'landscape' + | 'landscape-left' + | 'landscape-right'; type keyboardDismissModeType = 'none' | 'on-drag' | 'interactive'; type keyboardShouldPersistTapsType = - | 'always' - | 'never' - | 'handled' - | false - | true; + | 'always' + | 'never' + | 'handled' + | false + | true; type activityIndicatorSizeType = 'small' | 'large'; @@ -38,33 +35,43 @@ declare module 'react-native-simple-dialogs' { supportedOrientations?: supportedOrientationsType; onTouchOutside?: () => void; title?: string; - titleStyle?: StyleProp; - dialogStyle?: StyleProp; - contentStyle?: ViewProps; - buttonsStyle?: StyleProp; - overlayStyle?: StyleProp; - buttons?: ButtonProps