diff --git a/index.js b/index.js index c45db97..46e37a4 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -import NativeRNExitApp from "./NativeRNExitApp"; +import NativeRNExitApp from "./js/NativeRNExitApp"; var RNExitApp = { exitApp: function() { diff --git a/NativeRNExitApp.ts b/js/NativeRNExitApp.ts similarity index 72% rename from NativeRNExitApp.ts rename to js/NativeRNExitApp.ts index 15d4027..e392ea2 100644 --- a/NativeRNExitApp.ts +++ b/js/NativeRNExitApp.ts @@ -5,4 +5,4 @@ export interface Spec extends TurboModule { exitApp: () => void; } -export default TurboModuleRegistry.getEnforcing('RNExitApp'); \ No newline at end of file +export default TurboModuleRegistry.get('RNExitApp'); \ No newline at end of file diff --git a/package.json b/package.json index 7fd375e..0e755a3 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "codegenConfig": { "name": "RNExitAppSpec", "type": "modules", - "jsSrcsDir": ".", + "jsSrcsDir": "js", "android": { "javaPackageName": "com.github.wumke.RNExitApp" }