Skip to content
Compare
Choose a tag to compare
@satya164 satya164 released this 30 Apr 17:40
· 17 commits to main since this release
[email protected]
92fad2c

0.49.9 (2025-04-30)

Important

  1. From this release, we no longer enable includesGeneratedCode by default. Make sure to read the official docs to understand the advantages and tradeoffs of this approach. If you want to do the same in your project, follow this section and revert these steps https://callstack.github.io/react-native-builder-bob/build#codegen

  2. The example app no longer uses babel-plugin-module-resolver and configures Metro to use the source code instead. This example app will now read package.json#exports and package.json#imports (from React Native 0.79 (Metro 0.82) onwards). We use a custom condition called source to point to the source code.

    For React Native 0.78 and lower, make sure to have a source field in package.json:

      "main": "./lib/module/index.js",
    + "source": "./src/index.tsx",

    For React Native 0.79 and higher, make sure to have a source condition under exports field in package.json:

      "exports": {
         ".": {
    +    "source": "./src/index.tsx",
          "types": "./lib/typescript/src/index.d.ts",
          "default": "./lib/module/index.js"
        },
        "./package.json": "./package.json"
      },

    Make sure that your example/metro.config.js uses react-native-builder-bob/metro-config:

  3. We have removed templates for legacy architecture and C++ template. Use an older version if you still need them: npx [email protected] awesome-library. We plan to add a reworked C++ template in the future that doesn't use Kotlin or Objective-C wrappers.

Bug Fixes