Currently, I am facing an issue with importing the sjcl library into my project. Even though there are multiple files within the library, I am only able to import one file successfully.
This is what I have tried from the command line:
npm install sjcl --save
react-native link
Within a React Native JavaScript file:
import sjcl from 'sjcl';
It seems like this method only imports the sjcl.js file from the node package, rather than all the files included in it. I specifically need to import sha1.js from node_modules/sjcl/core/sha1.js. Despite trying different approaches, I have been unsuccessful in importing it successfully.
Is there a way to import an entire npm library into a React Native project effectively?