Are the underlying Native Modules compiled when they are installed from NPM, or are they compiled when the App is run (i.e. bundled)?
I don't think it's likely that they are compiled when they are installed from NPM as that would require you to have the appropriate compilers on your computer at the time of installation (which I didn't). On top of that, I can't find any files that appear to be the result of a compilation.
However, the reason that I'm not sure, is that changes to the Native code don't seem to be reflected in the final React Native app.
I'm trying to implement a feature that is missing in an NPM package, so to familiarize myself with the package, I've been tinkering around with the Native code.
However, I can change whatever I want, but the changes don't seem to do anything in the final application.
I went so far as to completely delete all of the Native code (the android
and ios
folders) from the given package and then cleared my cache (on both the Expo bundler and on the Expo client), but still nothing happened; somehow the application still seemed to ignore what should have been an obvious error (i.e. missing files).
Does this have something to do with the fact that I'm using Expo? Are the changes being ignored, because the code is being read from a cache somewhere? Am I just fundamentally misunderstanding something?
Any help would be much appreciated.
P.s. My end goal is to be able to modify the aforementioned NPM package, so if it's not possible to modify a Native Module directly, can someone enlighten me as to the correct way to do so? Thanks.