Giter Site home page Giter Site logo

Comments (5)

chakrihacker avatar chakrihacker commented on May 22, 2024

Can you share a repo to take a look at??

from rnnewarchitectureapp.

BraveEvidence avatar BraveEvidence commented on May 22, 2024

@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.

BraveEvidence avatar BraveEvidence commented on May 22, 2024

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
Screenshot 2022-07-10 at 10 02 09 AM
Screenshot 2022-07-10 at 10 02 25 AM
Screenshot 2022-07-10 at 10 03 01 AM

The error logs are for separate project with only fabric module.

from rnnewarchitectureapp.

cipolleschi avatar cipolleschi commented on May 22, 2024

Hi @PritishSawant, thanks for your questions. I think you are hitting two different problems, here.

  1. 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"
    }
  ]
}
  1. The error Undefined Symbols for architecture x86_64, _ColoredViewCls means that iOS is not finding the symbol for the ColoredViewCls 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.

BraveEvidence avatar BraveEvidence commented on May 22, 2024

@cipolleschi Thanks closing this

from rnnewarchitectureapp.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.