Any simple JavaScript library that does not depend on Node.js runtime modules, and does not rely on web-specific concepts (e.g. window.location.pathname) will run fine in React Native. But we have to be careful because there’s no way to test for this with Babel. it doesn’t scan these libraries for offending dependencies. A module that uses window.location.pathname may fail at runtime in an unexpected place.
For modules that explicitly depend on Node.js runtime modules, we can often use Babel plugins to browserify these elements for use in React Native.