react-native-spinkit: Android Release failed to find module
Hi, i am new to RN and am facing this issue when i packaged my android project APK (Running on debug works fine)
During runtime, i get a com.facebook.react.modules.core.JavascriptException: Requiring unknown module “react-native-spinkit”,
I am using the latest ReactNative 0.23.1
Is there any advice in facing this issue?
Full stack trace below
E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
com.facebook.react.modules.core.JavascriptException: Requiring unknown module "react-native-spinkit", stack:
t@2:387
i@2:177
<unknown>@720:131
t@2:511
i@2:177
<unknown>@710:297
t@2:511
i@2:177
<unknown>@645:278
t@2:511
i@2:177
<unknown>@640:387
t@2:511
i@2:177
<unknown>@638:180
t@2:511
i@2:177
<unknown>@637:83
t@2:511
i@2:177
<unknown>@636:1490
t@2:511
i@2:177
<unknown>@635:131
t@2:511
i@2:177
<unknown>@371:345
t@2:511
i@2:177
<unknown>@11:80
t@2:511
t@2:240
i@2:177
<unknown>@871:9
at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:90)
at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:78)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:266)
at com.facebook.react.bridge.NativeModuleRegistry$ModuleDefinition.call(NativeModuleRegistry.java:183)
at com.facebook.react.bridge.NativeModuleRegistry.call(NativeModuleRegistry.java:62)
at com.facebook.react.bridge.CatalystInstanceImpl$NativeModulesReactCallback.call(CatalystInstanceImpl.java:421)
at com.facebook.react.bridge.queue.NativeRunnableDeprecated.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
at android.os.Looper.loop(Looper.java:148)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:187)
at java.lang.Thread.run(Thread.java:818)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (5 by maintainers)
Commits related to this issue
- Fix issue with the android packager (issue #9) — committed to maxs15/react-native-spinkit by maxs15 8 years ago
- Fix issue with the android packager (issue #9) — committed to maxs15/react-native-spinkit by maxs15 8 years ago
yes, this was the problem 😄 😄 😄 😄 👍 i just renamed to index.js
hmmm weird…could it be because the main file is called index.ios.js ? Could you try to rename it
index.js
and update themain
property of the package.json accordingly ?