Browse Source

Merge pull request #194 from rawrmaan/patch-1

Fix index.d.ts import from react-native types
Gaëtan Renaudeau 5 years ago
parent
commit
9caa300af0
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/index.d.ts

+ 3
- 3
src/index.d.ts View File

10
 
10
 
11
 declare module 'react-native-view-shot' {
11
 declare module 'react-native-view-shot' {
12
     import { Component, ReactInstance } from 'react'
12
     import { Component, ReactInstance } from 'react'
13
-    import { StyleObj } from 'react-native/Libraries/StyleSheet/StyleSheetTypes'
13
+    import { ViewStyle } from 'react-native'
14
 
14
 
15
     export interface CaptureOptions {
15
     export interface CaptureOptions {
16
         /**
16
         /**
69
          */
69
          */
70
         onCaptureFailure?(error: Error): void;
70
         onCaptureFailure?(error: Error): void;
71
         /**
71
         /**
72
-         * style prop as StyleObj
72
+         * style prop as ViewStyle
73
          */
73
          */
74
-        style?: StyleObj;
74
+        style?: ViewStyle;
75
     }
75
     }
76
 
76
 
77
     export default class ViewShot extends Component<ViewShotProperties> {
77
     export default class ViewShot extends Component<ViewShotProperties> {