I'm having an issue with importing modules created with this utility.
If I...
- create a library, and run
npm install in the folder
- create a project somewhere else
- install the library /at/its/path with
react-native install in my project
- and then
import RNMyLibrary from 'react-native-my-library';
I see that the value for RNMyLibrary is null.
Am I doing something wrong?
Also, if I modify the Objective C code and add a method to the module, like in the docs example with the iOS calendar API, I get an error that null has no method. Something is weird with my import, and I'm not sure what.
I'm having an issue with importing modules created with this utility.
If I...
npm installin the folderreact-native installin my projectimport RNMyLibrary from 'react-native-my-library';I see that the value for RNMyLibrary is
null.Am I doing something wrong?
Also, if I modify the Objective C code and add a method to the module, like in the docs example with the iOS calendar API, I get an error that null has no method. Something is weird with my import, and I'm not sure what.