github callstack/react-native-builder-bob create-react-native-library@0.49.9

latest releases: create-react-native-library@0.54.2, create-react-native-library@0.54.1, create-react-native-library@0.54.0...
4 months ago

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 create-react-native-library@0.49.8 awesome-library. We plan to add a reworked C++ template in the future that doesn't use Kotlin or Objective-C wrappers.

Bug Fixes

Don't miss a new react-native-builder-bob release

NewReleases is sending notifications on new releases.