Expo on iOS constantly updates React Native on MacOS caused by Dropbox / iCloud

I am building a simple React Native app and using the Expo iOS app to launch it. But Expo is constantly updating my application, making it unusable / unchecked. It is updated every few seconds, sometimes several times per second, when I did not change anything. The only times when there are enough breaks between updates for me to check the application, when in my terminal the application decides to rebuild (again, nothing has changed) and it takes a few seconds to rebuild the package.

I installed the application using create-react-native-appand launched it using npm start- I did not change anything by adding several components.

I tried to get out of my IDE (Sublime) and switch to a stronger Wi-Fi network.

I am developing macOS Sierra 10.12.2 and working on iPhone 6S.

+4
source share
2 answers

It turns out that this happened because my application code was stored in the Dropbox folder. (The same goes for iCloud backups.)

I assume Dropbox / iCloud sync is interfering with the watchman or other Expo / React internals.

I solved the problem by deleting the application directory from the Dropbox folder.

+13
source

Do you have a watchman installed?

The React Native packager ( "metro bundler" ) , , , Dropbox.

0

Source: https://habr.com/ru/post/1680983/


All Articles