dominicstop / react-native-ios-context-menu

A react-native component to use context menu's (UIMenu) on iOS 13/14+
MIT License
572 stars 29 forks source link

fix: android compiling issue #113

Open jongbelegen opened 5 days ago

jongbelegen commented 5 days ago

Fix Android Build Issues with New React Native Architecture

Problem

When using this iOS-specific package with the new React Native architecture, Android builds fail with a Kotlin compilation error:

Execution failed for task ':react-native-ios-context-menu:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

This occurswhen using the new architecture-compatible versions:

Solution

Since this package is iOS-specific, I removed the Android folder to prevent Android build errors.

This change is particularly relevant for projects using Zeego, which depends on this package.