Skip to content

Commit 33506bf

Browse files
osdnkkmagiera
authored andcommitted
Remove WebView (software-mansion#438)
WebView has been moved outside RN core and therefore importing it is deprecated.
1 parent 57a0bf0 commit 33506bf

File tree

4 files changed

+1
-11
lines changed

4 files changed

+1
-11
lines changed

GestureHandler.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
ToolbarAndroid,
1212
ViewPagerAndroid,
1313
DrawerLayoutAndroid,
14-
WebView,
1514
StyleSheet,
1615
FlatList,
1716
Platform,
@@ -715,7 +714,6 @@ const WrappedSwitch = createNativeWrapper(Switch, {
715714
disallowInterruption: true,
716715
});
717716
const WrappedTextInput = createNativeWrapper(TextInput);
718-
const WrappedWebView = createNativeWrapper(WebView);
719717

720718
const WrappedToolbarAndroid = createNativeWrapper(ToolbarAndroid);
721719
const WrappedViewPagerAndroid = createNativeWrapper(ViewPagerAndroid, {
@@ -912,7 +910,6 @@ export {
912910
WrappedToolbarAndroid as ToolbarAndroid,
913911
WrappedViewPagerAndroid as ViewPagerAndroid,
914912
WrappedDrawerLayoutAndroid as DrawerLayoutAndroid,
915-
WrappedWebView as WebView,
916913
NativeViewGestureHandler,
917914
TapGestureHandler,
918915
FlingGestureHandler,

docs/about-handlers.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ Here is a list of exposed components:
8383
- `ToolbarAndroid` (**Android only**)
8484
- `ViewPagerAndroid` (**Android only**)
8585
- `DrawerLayoutAndroid` (**Android only**)
86-
- `WebView`
87-
86+
8887
If you want to use other handlers or [buttons](component-buttons.md) nested in a `ScrollView` or you want to use [`waitFor`](handler-common.md#waitfor) property to define interaction between a handler and `ScrollView`
8988

9089
---

docs/handlers.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Whenever you use a native component that should handle touch events you can eith
2222
- `ToolbarAndroid` (**Android only**)
2323
- `ViewPagerAndroid` (**Android only**)
2424
- `DrawerLayoutAndroid` (**Android only**)
25-
- `WebView`
2625

2726

2827
Library exports a `State` object that provides a number of constants used to express the state of the handler. Here are the available constants:

react-native-gesture-handler.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ declare module 'react-native-gesture-handler' {
1010
SliderProperties,
1111
SwitchProperties,
1212
TextInputProperties,
13-
WebViewProperties,
1413
ToolbarAndroidProperties,
1514
ViewPagerAndroidProperties,
1615
DrawerLayoutAndroidProperties,
@@ -414,10 +413,6 @@ declare module 'react-native-gesture-handler' {
414413
NativeViewGestureHandlerProperties & DrawerLayoutAndroidProperties
415414
> {}
416415

417-
export class WebView extends React.Component<
418-
NativeViewGestureHandlerProperties & WebViewProperties
419-
> {}
420-
421416
/* OTHER */
422417

423418
export class FlatList extends React.Component<

0 commit comments

Comments
 (0)