alinz / react-native-webview-bridge

React Native Webview with Javascript Bridge
MIT License
1.37k stars 493 forks source link

RCTViewManager RCTView #224

Closed zhangrundong closed 7 years ago

zhangrundong commented 7 years ago

image

swaroopa94 commented 7 years ago

Same issue please anyone help

arjshiv commented 7 years ago

Same issue here, too

arjshiv commented 7 years ago

But works when pulling from master - so possibly related to https://github.com/alinz/react-native-webview-bridge/pull/217 ?

vsrboth commented 7 years ago

The issue is still here. I am using

RN: 0.42.0 react-native-webview-bridge: 0.33.0

Can anyone help out? Thank you so much.

kingfun2015 commented 7 years ago

the same issue. with using "react-native": "0.40.0", "react-native-webview-bridge": "^0.33.0"

kingfun2015 commented 7 years ago

You can see here to solve this issue. https://github.com/alinz/react-native-webview-bridge/issues/219

kingfun2015 commented 7 years ago

If your react-native version more than 0.40,please to change the header file like this

import "RCTWebViewBridge.h"

import <UIKit/UIKit.h>

import <React/RCTAutoInsetsProtocol.h>

import <React/RCTConvert.h>

import <React/RCTEventDispatcher.h>

import <React/RCTLog.h>

import <React/RCTUtils.h>

import <React/RCTView.h>

import <React/UIView+React.h>

import <objc/runtime.h>

iOSHw commented 7 years ago

Nobody can give a correct answer?

Philipwzj commented 7 years ago

Same problem

rogerluo410 commented 7 years ago

The functionality has already added into RN core module.

So, the author maybe doesn't maintain the repo anymore...

Look at: https://github.com/alinz/react-native-webview-bridge/issues/206

eric-muyser-hs commented 7 years ago

@kingfun2015 That doesn't work. I suspect it's building RCTView etc. into the library and conflicting. Should be dynamically linked? That's a project setting right?

eric-muyser-hs commented 7 years ago

I have a fix, will post diff later. Basically just move the .h includes from the .m into the .h and change to <> not ""

highruned commented 7 years ago

Fix is in PR #230 if anybody needs it