浏览代码

Fix index.d.ts import from react-native types

Arman Dezfuli-Arjomandi 5 年前
父节点
当前提交
1f8e326215
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      src/index.d.ts

+ 3
- 3
src/index.d.ts 查看文件

@@ -10,7 +10,7 @@
10 10
 
11 11
 declare module 'react-native-view-shot' {
12 12
     import { Component, ReactInstance } from 'react'
13
-    import { StyleObj } from 'react-native/Libraries/StyleSheet/StyleSheetTypes'
13
+    import { ViewStyle } from 'react-native'
14 14
 
15 15
     export interface CaptureOptions {
16 16
         /**
@@ -69,9 +69,9 @@ declare module 'react-native-view-shot' {
69 69
          */
70 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 77
     export default class ViewShot extends Component<ViewShotProperties> {