Skip to content

fix: codegen didn't run warning on android#91

Merged
okwasniewski merged 1 commit intocallstack:mainfrom
atlj:@atlj/fix-codegen-didnt-run
Oct 29, 2024
Merged

fix: codegen didn't run warning on android#91
okwasniewski merged 1 commit intocallstack:mainfrom
atlj:@atlj/fix-codegen-didnt-run

Conversation

@atlj
Copy link
Contributor

@atlj atlj commented Oct 29, 2024

Fixes #87
This fixes a warning that we got when running the library on Android:
(NOBRIDGE) WARN Codegen didn't run for RNCTabView. This will be an error in the future. Make sure you are using @react-native/babel-preset when building your JavaScript code.

Looks like React Native now requires the user to transpile their code using the react native babel preset. This PR adds the babel preset to babel config and tells builder bob to use the preset.

This is a temporary fix and we will add this plugin directly to bob in the future.

How to test this?

  1. Use yalc or package the library using yarn pack
  2. Create a new React Native app and consume the package
  3. Make sure there is no NOBRIDGE) WARN Codegen didn't run for RNCTabView. This will be an error in the future. Make sure you are using @react-native/babel-preset when building your JavaScript code. warning.

@okwasniewski okwasniewski merged commit d7bf3b6 into callstack:main Oct 29, 2024
@atlj atlj deleted the @atlj/fix-codegen-didnt-run branch December 4, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WARN Codegen didn't run for RNCTabView on RN 0.75.4 and RNBT 0.1.2

2 participants