0.0.1 • Published 1 year ago

react-native-camera-position v0.0.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 year ago

react-native-camera-position

This library was created in order to guess where the camera is. 🧌

Install

yarn add react-native-camera-position

Usage

import { dudeWhereIsMyCamera, APPLE_ALWAYS_LEFT } from 'react-native-camera-position';

const App: React.FC = () => {
    if (dudeWhereIsMyCamera() === APPLE_ALWAYS_LEFT) {
        return (
            <Text>The camera is left</Text>
        )
    }
    
    return (
        <Text>The camera is not left</Text>
    );
}