|
@@ -52,15 +52,30 @@ 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 NativeWebViewAndroidComponent extends Component<
|
62
|
70
|
AndroidNativeWebViewProps
|
63
|
|
-> {}
|
|
71
|
+> {
|
|
72
|
+ /**
|
|
73
|
+ * Required to allow createAnimatedComponent() to hook up to the underlying NativeWebView rather than its wrapping View.
|
|
74
|
+ * @see: Discussion: https://twitter.com/LinguaBrowse/status/1211375582073761799?s=20
|
|
75
|
+ * @see: Implementation: https://github.com/facebook/react-native/blob/8ddf231306e3bd85be718940d04f11d23b570a62/Libraries/Lists/VirtualizedList.js#L515-L521
|
|
76
|
+ */
|
|
77
|
+ getScrollableNode(): number | null;
|
|
78
|
+}
|
64
|
79
|
declare const NativeWebViewAndroidBase: Constructor<NativeMethodsMixin> &
|
65
|
80
|
typeof NativeWebViewAndroidComponent;
|
66
|
81
|
export class NativeWebViewAndroid extends NativeWebViewAndroidBase {}
|