diff --git a/ios/RNWifi.h b/ios/RNWifi.h index 28ee399..1862600 100644 --- a/ios/RNWifi.h +++ b/ios/RNWifi.h @@ -5,7 +5,11 @@ // - Make sure the NetworkExtension framework is linked to the target #import -#import +#if __has_include() // React Native >= 0.40 +#import +#else // React Native < 0.40 +#import "RCTBridgeModule.h" +#endif @interface WifiManager : NSObject diff --git a/package.json b/package.json index 68b922c..8a7eb26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-wifi", - "version": "1.0.7", + "version": "1.0.8", "description": "A react-native implementation for viewing and connecting to Wifi networks on Android and iOS devices.", "main": "index.js", "scripts": {