Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error when loading this plugin #143

Closed
wants to merge 1 commit into from

Conversation

rizkisunaryo
Copy link

change from

var React = require('react-native');
var {
ActivityIndicatorIOS,
EdgeInsetsPropType,
StyleSheet,
Text,
View,
WebView,
requireNativeComponent,
PropTypes,
UIManager,
NativeModules: {
WebViewBridgeManager
}
} = React;

to

import React, { Component, PropTypes} from 'react';
import {
ActivityIndicatorIOS,
EdgeInsetsPropType,
findNodeHandle,
StyleSheet,
Text,
View,
WebView,
requireNativeComponent,
UIManager,
NativeModules,
} from 'react-native';

var WebViewBridgeManager = NativeModules.WebViewBridgeManager;

var React = require('react-native');
var {
  ActivityIndicatorIOS,
  EdgeInsetsPropType,
  StyleSheet,
  Text,
  View,
  WebView,
  requireNativeComponent,
  PropTypes,
  UIManager,
  NativeModules: {
    WebViewBridgeManager
  }
} = React;

to 

import React, { Component, PropTypes} from 'react';
import {
  ActivityIndicatorIOS,
  EdgeInsetsPropType,
  findNodeHandle,
  StyleSheet,
  Text,
  View,
  WebView,
  requireNativeComponent,
  UIManager,
  NativeModules,
} from 'react-native';

var WebViewBridgeManager = NativeModules.WebViewBridgeManager;
@chansuke
Copy link
Collaborator

Close

@chansuke chansuke closed this Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants