App ran fine on React Native 0.35.0. After updating to 0.40.0 via react-native-git-upgrade
I get a number of lexical/preprocessor issues when trying to build/ru
This steps helped solve my issue. I tried "Uncheck parallelize build" steps. It did not work for me.