React-native-orientation: IOS device off the autorotation it's not working ,When we are using landscape mode not working, it shows PORTRAIT mode

Created on 13 Feb 2017  路  1Comment  路  Source: yamill/react-native-orientation

in device not showing landscape, when we are off the auto rotation in device,show an portrait. actually to lock landscape and in x code i am putting landscape left & and landscape right. But it's not working.

Any suggest plz

to-be-reviewed

Most helpful comment

Finally i solved my issue: just i add both two files in AppDelegate.m

#import "../../node_modules/react-native-orientation/iOS/RCTOrientation/Orientation.h"

 - (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
    return [Orientation getOrientation];
  }

>All comments

Finally i solved my issue: just i add both two files in AppDelegate.m

#import "../../node_modules/react-native-orientation/iOS/RCTOrientation/Orientation.h"

 - (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
    return [Orientation getOrientation];
  }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

cbcye picture cbcye  路  8Comments

sahas- picture sahas-  路  7Comments

yamill picture yamill  路  8Comments

DriesVS picture DriesVS  路  7Comments

balmasich picture balmasich  路  6Comments