|
@@ -52,10 +52,18 @@ export type State = NormalState | ErrorState;
|
52
|
52
|
// eslint-disable-next-line react/prefer-stateless-function
|
53
|
53
|
declare class NativeWebViewIOSComponent extends Component<
|
54
|
54
|
IOSNativeWebViewProps
|
55
|
|
-> {}
|
|
55
|
+> {
|
|
56
|
+ /**
|
|
57
|
+ * Required to allow createAnimatedComponent() to hook up to the underlying NativeWebView rather than its wrapping View.
|
|
58
|
+ * @see: Discussion: https://twitter.com/LinguaBrowse/status/1211375582073761799?s=20
|
|
59
|
+ * @see: Implementation: https://github.com/facebook/react-native/blob/8ddf231306e3bd85be718940d04f11d23b570a62/Libraries/Lists/VirtualizedList.js#L515-L521
|
|
60
|
+ */
|
|
61
|
+ getScrollableNode(): number | null;
|
|
62
|
+}
|
56
|
63
|
declare const NativeWebViewIOSBase: Constructor<NativeMethodsMixin> &
|
57
|
64
|
typeof NativeWebViewIOSComponent;
|
58
|
|
-export class NativeWebViewIOS extends NativeWebViewIOSBase {}
|
|
65
|
+export class NativeWebViewIOS extends NativeWebViewIOSBase {
|
|
66
|
+}
|
59
|
67
|
|
60
|
68
|
// eslint-disable-next-line react/prefer-stateless-function
|
61
|
69
|
declare class NativeWebViewMacOSComponent extends Component<
|
|
@@ -68,7 +76,14 @@ export class NativeWebViewMacOS extends NativeWebViewMacOSBase {}
|
68
|
76
|
// eslint-disable-next-line react/prefer-stateless-function
|
69
|
77
|
declare class NativeWebViewAndroidComponent extends Component<
|
70
|
78
|
AndroidNativeWebViewProps
|
71
|
|
-> {}
|
|
79
|
+> {
|
|
80
|
+ /**
|
|
81
|
+ * Required to allow createAnimatedComponent() to hook up to the underlying NativeWebView rather than its wrapping View.
|
|
82
|
+ * @see: Discussion: https://twitter.com/LinguaBrowse/status/1211375582073761799?s=20
|
|
83
|
+ * @see: Implementation: https://github.com/facebook/react-native/blob/8ddf231306e3bd85be718940d04f11d23b570a62/Libraries/Lists/VirtualizedList.js#L515-L521
|
|
84
|
+ */
|
|
85
|
+ getScrollableNode(): number | null;
|
|
86
|
+}
|
72
|
87
|
declare const NativeWebViewAndroidBase: Constructor<NativeMethodsMixin> &
|
73
|
88
|
typeof NativeWebViewAndroidComponent;
|
74
|
89
|
export class NativeWebViewAndroid extends NativeWebViewAndroidBase {}
|