Comments (5)
Can you share a repo to take a look at??
from rnnewarchitectureapp.
@chakrihacker Check this https://github.com/PritishSawant/ReactNativeMultipleTurboModulesAndFabricExample
The issue happens for iOS codegen. I have multiple Fabric
and TurboModules
Spec in js folder and codegen
is not able to recognise which one is Fabric and which one is TurboModule so I think the issue happens.
from rnnewarchitectureapp.
Looks like on further debugging, the issue is on codgen side for Fabric. Even individual fabric component with no TurboModule in a separate project is not working
The error logs are for separate project with only fabric module.
from rnnewarchitectureapp.
Hi @PritishSawant, thanks for your questions. I think you are hitting two different problems, here.
- If you want to create a library which has both a TM and a FC, you have to work with it in the same way android does: you have to create a single library that contains both and use the type
all
. The configuration will look something like this:
"codegenConfig": {
"libraries": [
{
"name": "CustomLib",
"type": "all",
"jsSrcsDir": "./js"
}
]
}
- The error
Undefined Symbols for architecture x86_64, _ColoredViewCls
means that iOS is not finding the symbol for theColoredViewCls
method. If you look here, you'll see that, at the end of the last iOS file, there is the required method: That is something you have to write, the Codegen can't create that for you because the Codegen does not know the name of the class that actually represents the View in the native world.
from rnnewarchitectureapp.
@cipolleschi Thanks closing this
from rnnewarchitectureapp.
Related Issues (18)
- TurboModule for android is always null HOT 9
- Fabric for android causes import error in MainComponentsRegistry.cpp
- Converting TurboModule file to kotlin throws error HOT 3
- Codegen issue while trying to create a fabric component HOT 2
- How to generate codegen for multiple spec files in android? HOT 3
- Codegen header file for iOS has to be manually added to iOS project lead to CI/CD errors HOT 2
- How to do event handling for android and iOS in react native's new architecture for fabric components? HOT 2
- Is there a way to use `CodegenTypes` in ts files ? HOT 1
- turbomodule migration not using codegen-ed code? HOT 2
- include could not find load file: ImportHermesc.cmake HOT 2
- How to declare objects with methods in TypeScript spec file? HOT 3
- Can't pass gradle build on Windows HOT 3
- Getting high ms IOS simulator HOT 1
- Unable to build for android HOT 1
- Tried to follow iOS steps, app just crashes on start HOT 3
- fatal error: 'answersolver.h' file not found HOT 7
- clang++: error: linker command failed with exit code 1 (use -v to see invocation) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rnnewarchitectureapp.