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
As pointed out by th0th, there is a breaking change in RN 0.40 for iOS. In short, RN header declarations are updated to point to the include path $(BUILT_PRODUCTS_DIR)/include/React
.
To solve the issue, you have to do the following:
Note: You might still have similar header issue with other libraries (e.g. react-native-fbsdk) that are referring to those react native .h files.