Install rnvideo

This commit is contained in:
Marc Rousavy
2021-02-19 18:43:41 +01:00
parent 2e2baddffb
commit 1d71aada11
6 changed files with 81 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
import { Dimensions, Platform } from "react-native";
import StaticSafeAreaInsets from "react-native-static-safe-area-insets";
export const CONTENT_SPACING = 15;
@@ -8,3 +9,28 @@ export const SAFE_AREA_PADDING = {
paddingRight: StaticSafeAreaInsets.safeAreaInsetsRight + CONTENT_SPACING,
paddingBottom: StaticSafeAreaInsets.safeAreaInsetsBottom + CONTENT_SPACING
}
// whether to use takeSnapshot() instead of takePhoto() on Android
export const USE_SNAPSHOT_ON_ANDROID = false;
// The maximum photo resolution (in pixels).
// Setting this to a lower value means faster capture speed
// Setting this to a higher value means higher quality images
export const RESOLUTION_LIMIT = Platform.select({
android: 3264 * 1840,
});
// whether to use ultra-wide-angle cameras if available, or explicitly disable them. I think ultra-wide-angle cams don't support 60FPS...
export const USE_ULTRAWIDE_IF_AVAILABLE = true;
// the max FPS to use if available
export const HIGH_FPS = 50;
// The maximum zoom _factor_ you should be able to zoom in
export const MAX_ZOOM_FACTOR = 16;
export const SCREEN_WIDTH = Dimensions.get('window').width;
export const SCREEN_HEIGHT = Platform.select<number>({
android: Dimensions.get("screen").height - StaticSafeAreaInsets.safeAreaInsetsBottom,
ios: Dimensions.get("window").height,
}) as number;

View File

@@ -1,8 +1,9 @@
import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import type { NavigationFunctionComponent } from 'react-native-navigation';
export default function Settings() {
export const Settings: NavigationFunctionComponent = ({ componentId }) => {
return (
<View style={styles.container}>
<Text>powered by Cuvent</Text>