Skip to content

Guide for integrating Granite bundle into an existing iOS/Android app (without test app) #147

@artdrabinko

Description

@artdrabinko

First of all, thank you for building Granite.

While following the quick start guide, I successfully built the project and generated the following bundle files:

bundle.ios.hbc
bundle.ios.js

From my understanding, these files represent the compiled Hermes bytecode and JS bundle that can be loaded into a native iOS app.

Instead of using the Granite iOS/Android test app, I’d like to integrate the Granite-generated bundle directly into my existing native projects (a brownfield setup).

Could you please provide a detailed guide or example for integrating a Granite bundle directly into an existing iOS app?
For example:
Where to place the generated .hbc file in the iOS project?
How to configure RCTBridge to load the Granite bundle?
What moduleName should be used when creating RCTRootView (e.g., what name Granite registers by default)?
Any required CocoaPods dependencies or build settings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions