react-native-camera-kit - v16.1.2
    Preparing search index...

    Variable OrientationConst

    Orientation: {
        LANDSCAPE_LEFT: 1;
        LANDSCAPE_RIGHT: 3;
        PORTRAIT: 0;
        PORTRAIT_UPSIDE_DOWN: 2;
    } = ...

    Orientation constants for CameraProps.onOrientationChange.

    Start with portrait/pointing up and increment while moving counter‑clockwise.

    Mapping:

    • PORTRAIT = 0
    • LANDSCAPE_LEFT = 1
    • PORTRAIT_UPSIDE_DOWN = 2
    • LANDSCAPE_RIGHT = 3

    Type Declaration

    • ReadonlyLANDSCAPE_LEFT: 1

      Landscape: left edge up (Surface.ROTATION_90 on Android).

    • ReadonlyLANDSCAPE_RIGHT: 3

      Landscape: right edge up (Surface.ROTATION_270 on Android).

    • ReadonlyPORTRAIT: 0

      Portrait: top edge up (Surface.ROTATION_0 on Android).

    • ReadonlyPORTRAIT_UPSIDE_DOWN: 2

      Upside‑down portrait: bottom edge up (Surface.ROTATION_180).

    const onOrientationChange = ({ nativeEvent }) => {
    if (nativeEvent.orientation === Orientation.LANDSCAPE_LEFT) {
    // adjust your UI
    }
    };