-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Undefined symbol: _CustomWebViewCls #47217
Comments
Hi @BraveEvidence, thanks for the issue. There is a warning box explaining what's going on. This error will be fixed with 0.76.1 |
I just tried with React native 0.76.1 and the issue still exists, check my repo |
I was running into the same issue. What did the trick for me was adding the following line in the component implementation (the
This is missing in the guide to create native components (https://reactnative.dev/docs/fabric-native-components-introduction) but it's present when you create a library following this guide: https://reactnative.dev/docs/the-new-architecture/create-module-library. |
Actually there are lot of issues and this video helped me resolve all issues |
they wil be fixed in 0.76.2. We forgot a pick in .1 and the other fix had a typo. :sad: |
Description
I created a project using react native community template. I followed all the steps mentioned in the Native components doc to create a fabric component and for iOS I get error saying
Undefined symbol: _CustomWebViewCls
Steps to reproduce
Create project using react native community template
Run
mkdir -p myapp/{specs,android/app/src/main/java/com/webview}
In
myapp/specs/WebViewNativeComponent.ts
In
package.json
addThen run following commands
Open
myapp.xcworkspace
from iOS folder in XcodeCreate Group called
WebView
Create
RCTWebView.mm
&RCTWebView.h
In
RCTWebView.h
addIn
RCTWebView.mm
addI also added
Webkit.framework
like belowIn
AppDelegate.mm
file added#import "RCTWebView.h"
React Native Version
0.76.0
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/BraveEvidence/ReactNative76Fabric
Screenshots and Videos
The text was updated successfully, but these errors were encountered: