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
Changing the path from:
#import <React/RCTBridgeModule.h>
to:
#import <React/Base/RCTBridgeModule.h>
worked for me.
There is a breaking change on 0.40, you can see details here.
Quoting directly from the release notes:
This means that all iOS native libraries need a major version bump for RN 0.40. We attempt to minimize changes of this magnitude, and we apologize for any inconvenience caused.
So, all native iOS libraries will need an update before getting compatible with react-native version 0.40.
This steps helped solve my issue. I tried "Uncheck parallelize build" steps. It did not work for me.
In react-native 0.40
you have to replace #import "RCTBridgeModule.h"
with #import <React/RCTBridgeModule.h>
then clean and build it again.