Skip to content

Commit

Permalink
Webview bridge is no longer supported.
Browse files Browse the repository at this point in the history
Eventually this functionality will get moved into core: alinz/react-native-webview-bridge#109. But leaving it out for now.
  • Loading branch information
Noah Malmed committed Feb 8, 2018
1 parent 173cfc2 commit 0595585
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/ZooWebView.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import {
Alert,
Linking,
Platform,
View
View,
WebView
} from 'react-native'
import EStyleSheet from 'react-native-extended-stylesheet'
import NavBar from './NavBar'
import { setState, setIsFetching } from '../actions/index'
import { connect } from 'react-redux'
import {Actions} from 'react-native-router-flux'
import WebViewBridge from 'react-native-webview-bridge'
import OverlaySpinner from './OverlaySpinner'
import PropTypes from 'prop-types';

Expand Down Expand Up @@ -67,9 +67,8 @@ class ZooWebView extends React.Component {
return (
<View style={styles.container}>
<NavBar title={this.props.project.display_name} showBack={true} onBack={()=> {this.onBack()}} />
<WebViewBridge
<WebView
ref={WEBVIEW_REF}
onBridgeMessage={this.onBridgeMessage.bind(this)}
source={{uri: zurl}}
onLoadEnd={this.onLoadEnd}
injectedJavaScript={jsCode}
Expand Down Expand Up @@ -137,7 +136,6 @@ class ZooWebView extends React.Component {

onLoadEnd = () => {
this.props.setIsFetching(false)
setTimeout(() => { this.refs[WEBVIEW_REF].sendToBridge('get-links') }, 1500)
}

handleExternalLink(url) {
Expand Down

0 comments on commit 0595585

Please sign in to comment.