Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin support #141

Open
DimitrisTzimikas opened this issue Dec 21, 2023 · 0 comments · May be fixed by #146
Open

Kotlin support #141

DimitrisTzimikas opened this issue Dec 21, 2023 · 0 comments · May be fixed by #146

Comments

@DimitrisTzimikas
Copy link

To make it work on newest React Native 0.73 that updated Android files to Kotlin this line needs to be added in android/app/src/main/java/com/YOUR_APPLICATION_NAME/MainApplication.kt

// Ultimate Config: https://github.com/maxkomarychev/react-native-ultimate-config/blob/master/docs/quickstart.md
import com.reactnativeultimateconfig.UltimateConfigModule

and then inside class MainApplication

    override fun onCreate() {
        super.onCreate()
        SoLoader.init(this, false)
        if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
            // If you opted-in for the New Architecture, we load the native entry point for this app.
            load()
        }
        ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager)

        // Ultimate Config: https://github.com/maxkomarychev/react-native-ultimate-config/blob/master/docs/quickstart.md
        UltimateConfigModule.setBuildConfig(BuildConfig::class.java)
    }
    
@TheWirv TheWirv linked a pull request Feb 7, 2024 that will close this issue
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 a pull request may close this issue.

1 participant