You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a limitation on this kind of operation? I couldn't find any reference to NativeModules in the documentation.
I also found that NativeModules is an empty object inside a thread.
Module
Version
React Native
0.55.4
react-native-threads
0.0.12
react-native-sqlite-storage
3.3.6
The text was updated successfully, but these errors were encountered:
WesSouza
changed the title
TypeError: undefined is not an object (evaluating 'NativeModules["SQLite"][method]')NativeModules is empty object
Jun 18, 2018
WesSouza
changed the title
NativeModules is empty objectNativeModules is empty
Jun 18, 2018
To use native packages such as react-native-sqlite-storage in a thread on Android, you will need to modify your MainApplication.java file as outlined in the android section of the README
To include additional native modules in your threads, pass them into the RNThreadPackage constructor after the mReactNativeHost like this: new RNThreadPackage(mReactNativeHost, new ExampleNativePackage(), new SQLitePackage())
On iOS the NativeModules object should not be empty.
I'm trying to use this module together with andpor/react-native-sqlite-storage, but something's preventing it from initializing correctly.
The error I could extract from the thread is:
Seems to be related to line 84 on
lib/sqlite.core.js
that depends on theNativeModule
bind for that module.Is there a limitation on this kind of operation? I couldn't find any reference to
NativeModules
in the documentation.I also found that
NativeModules
is an empty object inside a thread.The text was updated successfully, but these errors were encountered: