Skip to content

Commit

Permalink
Remove WebView (#438)
Browse files Browse the repository at this point in the history
WebView has been moved outside RN core and therefore importing it is deprecated.
  • Loading branch information
osdnk authored Feb 12, 2019
1 parent 180cfdf commit 9022bc9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions GestureHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
ToolbarAndroid,
ViewPagerAndroid,
DrawerLayoutAndroid,
WebView,
StyleSheet,
FlatList,
Platform,
Expand Down Expand Up @@ -715,7 +714,6 @@ const WrappedSwitch = createNativeWrapper(Switch, {
disallowInterruption: true,
});
const WrappedTextInput = createNativeWrapper(TextInput);
const WrappedWebView = createNativeWrapper(WebView);

const WrappedToolbarAndroid = createNativeWrapper(ToolbarAndroid);
const WrappedViewPagerAndroid = createNativeWrapper(ViewPagerAndroid, {
Expand Down Expand Up @@ -912,7 +910,6 @@ export {
WrappedToolbarAndroid as ToolbarAndroid,
WrappedViewPagerAndroid as ViewPagerAndroid,
WrappedDrawerLayoutAndroid as DrawerLayoutAndroid,
WrappedWebView as WebView,
NativeViewGestureHandler,
TapGestureHandler,
FlingGestureHandler,
Expand Down
3 changes: 1 addition & 2 deletions docs/about-handlers.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ Here is a list of exposed components:
- `ToolbarAndroid` (**Android only**)
- `ViewPagerAndroid` (**Android only**)
- `DrawerLayoutAndroid` (**Android only**)
- `WebView`


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`

---
Expand Down
1 change: 0 additions & 1 deletion docs/handlers.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Whenever you use a native component that should handle touch events you can eith
- `ToolbarAndroid` (**Android only**)
- `ViewPagerAndroid` (**Android only**)
- `DrawerLayoutAndroid` (**Android only**)
- `WebView`


Library exports a `State` object that provides a number of constants used to express the state of the handler. Here are the available constants:
Expand Down
5 changes: 0 additions & 5 deletions react-native-gesture-handler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ declare module 'react-native-gesture-handler' {
SliderProperties,
SwitchProperties,
TextInputProperties,
WebViewProperties,
ToolbarAndroidProperties,
ViewPagerAndroidProperties,
DrawerLayoutAndroidProperties,
Expand Down Expand Up @@ -434,10 +433,6 @@ declare module 'react-native-gesture-handler' {
NativeViewGestureHandlerProperties & DrawerLayoutAndroidProperties
> {}

export class WebView extends React.Component<
NativeViewGestureHandlerProperties & WebViewProperties
> {}

/* OTHER */

export class FlatList extends React.Component<
Expand Down

0 comments on commit 9022bc9

Please sign in to comment.