you just need to add #import "ReactNativeConfig.h"
in bridging header. If you did that you can use it in your swift code without any additional import.
Here is some article I found helpful.
https://medium.com/@subhangdxt/bridging-objective-c-and-swift-classes-5cb4139d9c80
And here is my code:
My app-Bridging-Header.h:
...
#import "ReactNativeConfig.h"
...
My AppDelegate.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
...
if let gmsApiKey = ReactNativeConfig.env(for: "GOOGLE_MAPS_API_KEY") {
GMSServices.provideAPIKey(gmsApiKey)
} else {
print("ERROR: No goole maps api key provided!")
}
bridge = RCTBridge(delegate: self, launchOptions: launchOptions)
...
return true
}