In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.m:1:
In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.h:8:
In file included from ../../react-native/React/Modules/RCTEventEmitter.h:10:
In file included from /Users/exkazuu/Projects/AwesomeProject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h:13:
/Users/exkazuu/Projects/AwesomeProject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h:54:16: error: redefinition of 'RCTMethodInfo'
typedef struct RCTMethodInfo {
^
In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.m:1:
In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.h:2:
../../react-native/React/Base/RCTBridgeModule.h:54:16: note: previous definition is here
typedef struct RCTMethodInfo {
^
In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.m:1:
In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.h:8:
In file included from ../../react-native/React/Modules/RCTEventEmitter.h:10:
In file included from /Users/exkazuu/Projects/AwesomeProject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h:13:
/Users/exkazuu/Projects/AwesomeProject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h:58:3: error: typedef redefinition with different types ('struct (anonymous struct at /Users/exkazuu/Projects/AwesomeProject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h:54:16)' vs 'struct RCTMethodInfo')
} RCTMethodInfo;
^
In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.m:1:
In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.h:2:
../../react-native/React/Base/RCTBridgeModule.h:58:3: note: previous definition is here
} RCTMethodInfo;
^
In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.m:1:
In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.h:8:
In file included from ../../react-native/React/Modules/RCTEventEmitter.h:10:
In file included from /Users/exkazuu/Projects/AwesomeProject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h:13:
/Users/exkazuu/Projects/AwesomeProject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h:65:11: warning: duplicate protocol definition of 'RCTBridgeModule' is ignored [-Wduplicate-protocol]
@protocol RCTBridgeModule <NSObject>
^
In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.m:1:
In file included from /Users/exkazuu/Projects/AwesomeProject/node_modules/react-native-kontaktio/ios/KontaktBeacons.h:2:
../../react-native/React/Base/RCTBridgeModule.h:65:11: note: previous definition is here
@protocol RCTBridgeModule <NSObject>
^
1 warning and 2 errors generated.
** BUILD FAILED **
Here is a reproduction repository: https://github.com/exKAZUu/react-native-kontaktio-issue20
react-native run-ios
shows the following errors.