Read file in project directory from native iOS code?
<p>I have a react-native application that has some settings in a file called <code>settings.json</code>.  I would like to read one of the settings in the file from my native iOS code.  I tried the code below:</p>

<pre><code>NSFileManager *filemgr;
NSString *currentpath;
filemgr = [NSFileManager defaultManager];
currentpath = [filemgr currentDirectoryPath];
NSLog(@"Value of filePath = %@", currentpath);
</code></pre>

<p>But this logs the path <code>/</code> every time.  How can I get the path for my actual project which is something like this: <code>/Users/currentUser/Documents/development/ReactProject</code></p>

<p>I obviously can't hardcode this into my app.  How can I get the directory for the current <code>react-native</code> project?</p>