Releases: callstack/react-native-builder-bob
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
0.49.9 (2025-04-30)
Important
-
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 -
The example app no longer uses
babel-plugin-module-resolver
and configures Metro to use the source code instead. This example app will now readpackage.json#exports
andpackage.json#imports
(from React Native 0.79 (Metro 0.82) onwards). We use a custom condition calledsource
to point to the source code.For React Native 0.78 and lower, make sure to have a
source
field inpackage.json
:"main": "./lib/module/index.js", + "source": "./src/index.tsx",
For React Native 0.79 and higher, make sure to have a
source
condition underexports
field inpackage.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
usesreact-native-builder-bob/metro-config
: -
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
- don't ship generated code with the library (#819) (d369d18) - by @satya164
- fix typo in podspec (8ed72ef) - by @satya164
- install nitro modules dependency automatically for local modules (#828) (9ffb17c) - by @atlj
- migrate to babel-plugin-syntax-hermes-parser (#822) (a797db3), closes /github.com/facebook/react-native/issues/50683#issuecomment-2804970384 - by @huntie
- move Gemfile to the root (bc1b53e) - by @satya164
- use react native babel config for node_modules (#823) (a260218), closes #747 - by @satya164