0

I created a project with

npx react-native init

While development I used only iOS and xcode and today for a first time I run it on android... And got an error in time of build process. The error is

error: cannot find symbol ReactNativeConfig.DEFAULT_CONFIG,

In MainApplicationReactNativeHost.java I have an import

import com.facebook.react.fabric.ReactNativeConfig;

and next code

return new FabricJSIModuleProvider(
                reactApplicationContext,
                componentFactory,
                ReactNativeConfig.DEFAULT_CONFIG,
                viewManagerRegistry);

in Gradle.properties file JSI is disabled

newArchEnabled=false

I googled nothing about this error, so maybe someone here knows how to fix it?

1 Answer 1

1

Update to rn 0.69 fixed the problem.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.