diff --git a/packages/platform-android/native_modules.gradle b/packages/platform-android/native_modules.gradle index 8f5dc4007..0089255bc 100644 --- a/packages/platform-android/native_modules.gradle +++ b/packages/platform-android/native_modules.gradle @@ -221,7 +221,7 @@ class ReactNativeModules { HashMap reactNativeModuleConfig = new HashMap() reactNativeModuleConfig.put("name", name) - reactNativeModuleConfig.put("nameCleansed", name.replaceAll('^@([\\w-]+)/', '$1_')) + reactNativeModuleConfig.put("nameCleansed", name.replaceAll('[~*!\'()]+', '_').replaceAll('^@([\\w-.]+)/', '$1_')) reactNativeModuleConfig.put("androidSourceDir", androidConfig["sourceDir"]) reactNativeModuleConfig.put("packageInstance", androidConfig["packageInstance"]) reactNativeModuleConfig.put("packageImportPath", androidConfig["packageImportPath"])