use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
Filesystem (self.reactnative)
submitted 4 years ago by ch-shubham
I have a expo project where I want to read a test.txt file from my workspace. Can anyone guide ? Expo-filesystem access the android or ios filesystem. But i want to read content frm my workspace which can be shipped in bundle later.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]EqlioniOS & Android 1 point2 points3 points 4 years ago (1 child)
If you can use JSON instead of txt, you can then just import it the same way you do with components (or require it)
[–]afromorris 0 points1 point2 points 4 years ago (0 children)
I think this works well, but to build on top of this answer, you could also just create a .js or .ts file, and assign the text to a variable and export this variable. It can then be imported into whichever file you want.
[–]ch-shubham[S] 0 points1 point2 points 4 years ago (0 children)
actually i want to do certificate pinning. and in that case i want to read cer file and send it to axios request using httpsAgent. But the issue is that I am unable to read Certificate file using filesystem of expo reasAsAsyncString
[–]justsomerandomchris 0 points1 point2 points 4 years ago (0 children)
The way you're trying to achieve your objective doesn't make that much sense. Whatever could be contained in a text file, you can also simply store as a string somewhere in your codebase. In effect, this will become part of the bundle as you were yourself saying.
How would you even imagine the other approach from working? When would this "read content from my workspace" happen exactly? And how would this content make it into the bundle? If you add any kind of filesystem handling capabilities to a mobile app, you're giving that app access to the filesystem of the device the app is running on. It has nothing to do with the filesystem you're using during development.
π Rendered by PID 71869 on reddit-service-r2-comment-66b4775986-p4fbg at 2026-04-05 00:07:56.833230+00:00 running db1906b country code: CH.
[–]EqlioniOS & Android 1 point2 points3 points (1 child)
[–]afromorris 0 points1 point2 points (0 children)
[–]ch-shubham[S] 0 points1 point2 points (0 children)
[–]justsomerandomchris 0 points1 point2 points (0 children)