Cannot find 'Orientation' in scope
after adding below line
- // required for react-native-orientation-locker
- func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
- return Orientation.getOrientation()
- }
kindly update over this
In the new version of RN, if you're use AppDelegate.swift file, instead of import in that file, you can import
#import "Orientation.h" in your briding header file [project_name]-Bridging-Header.h
@minhchienwikipedia ITS NOT WORKING
error no such module 'Orientation' error Failed to build ios project. "xcodebuild" exited with error code '65'. To debug build logs further, consider building your app with Xcode.app
"react-native": "0.82.1", "react-native-orientation-locker": "^1.7.0",
I'm having the same problem. How can I solve it?
+1
Make sure the bridging file is referenced in XCode (Objective-C Bridging Header): The path to the bridging file is [PROJECT_NAME]/[project_name]-Bridging-Header.h PROJECT_NAME is just the folder name inside the IOS folder