iou90 4 년 전
부모
커밋
3a668754b0
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      index.d.ts

+ 3
- 3
index.d.ts 파일 보기

6
 
6
 
7
 import { WebViewProps } from 'react-native-webview';
7
 import { WebViewProps } from 'react-native-webview';
8
 
8
 
9
-import { ViewStyle } from 'react-native';
9
+import { StyleProp, ViewStyle } from 'react-native';
10
 
10
 
11
 export interface StylesFile {
11
 export interface StylesFile {
12
   href: string;
12
   href: string;
22
 export interface AutoHeightWebViewProps extends WebViewProps {
22
 export interface AutoHeightWebViewProps extends WebViewProps {
23
   onSizeUpdated: (size: SizeUpdate) => void;
23
   onSizeUpdated: (size: SizeUpdate) => void;
24
   files: StylesFile[];
24
   files: StylesFile[];
25
-  style: ViewStyle;
25
+  style: StyleProp<ViewStyle>;
26
   customScript: string;
26
   customScript: string;
27
   customStyle: string;
27
   customStyle: string;
28
   viewportContent: string;
28
   viewportContent: string;
29
   scrollEnabledWithZoomedin: boolean;
29
   scrollEnabledWithZoomedin: boolean;
30
 }
30
 }
31
 
31
 
32
-export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> {}
32
+export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> { }