Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the "/ios/index/DataStore" Folder for in React Native Development

I am basically wondering if I should exclude the /ios/index/DataStore Folder within my react-native init Project from version control.

The default .gitignore file doesn't exclude it but it seems that the contents of this folder change with each build and can easily be regenared by running react-native run-ios.

Couldn't find any information what this folder is actually for.

like image 550
Snowball Avatar asked Nov 13 '17 09:11

Snowball


1 Answers

xcodebuild indexes your project in order to speed up subsequent builds, you are safe to .gitignore this directory. If you'd like you change its location, that can be done via Xcode > Preferences > Locations > Advanced.

preferences window enter image description here

Regarding a react-native project it's probably best to leave these settings alone as you are using the build scripts which are (as of react-native 0.53.0) hard-coded into react-native-cli.

like image 156
anderskev Avatar answered Oct 21 '22 18:10

anderskev