Check if a path exist in React Native

49 views Asked by At

I would like to check if files or folder exist in my current project. I have try using react-native-fs but this not take the files in the project but on the phone. So for exemple, i would like to get the names of the files like App.js

Thank you in advance

1

There are 1 answers

0
Vénon On BEST ANSWER

It's not a direct answer but in python i made a script that browse all my folders and files and i create a .js file with a huge switch that return the require(my_file) if the desire content is found. False otherwise. I'm just scare of performances at the end because for now my jsons are empty and for only 5 screens, it's already 525 requiere / files load.