1.0.9 • Published 2 years ago

@hashiprobr/expo-camera v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

expo-camera

A modified version of expo-camera with automatic ratio in Android and additional configurability

Peer dependencies

{
    "@hashiprobr/react-use-mount-and-update": "1.0.5",
    "expo": "45.0.0",
    "expo-camera": "12.2.0",
    "hoist-non-react-statics": "3.3.2",
    "react": "17.0.2",
    "react-native": "0.68.2"
}

Install

With npm:

npm install @hashiprobr/expo-camera

With yarn:

yarn add @hashiprobr/expo-camera

With expo:

expo install @hashiprobr/expo-camera

If using Expo, add the module to webpack.config.js:

const createExpoWebpackConfigAsync = require('@expo/webpack-config');

module.exports = async function (env, argv) {
    const config = await createExpoWebpackConfigAsync({
        ...env,
        babel: {
            dangerouslyAddModulePathsToTranspile: [
                '@hashiprobr/expo-camera',
            ],
        },
    }, argv);
    return config;
};

If webpack.config.js does not exist, create it with:

expo customize:web

Removed props

namedescription
ratioautomatically chosen as the closer to the component ratio

Added props

namedescription
padColorcolor of the padding when the ratio and the component ratio are different
cropif true, the preview is cropped to a square area
cropColorcolor of the crop
cropAlphaopacity of the crop
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago