Fix App.tsx tsc errors

This commit is contained in:
Marc Rousavy 2021-02-25 13:57:51 +01:00
parent 1f5bf6e365
commit d601a8dcc9
2 changed files with 1443 additions and 15 deletions

View File

@ -24,6 +24,7 @@ import IonIcon from 'react-native-vector-icons/Ionicons';
import { useSelector } from 'pipestate';
import { FpsSelector } from './state/selectors';
// @ts-expect-error The <Camera> types are a bit tricky since they're using Unions. I'll try to flatten those out in a future PR.
const ReanimatedCamera = Reanimated.createAnimatedComponent(Camera);
Reanimated.addWhitelistedNativeProps({
zoom: true,
@ -238,12 +239,17 @@ export const App: NavigationFunctionComponent = ({ componentId }) => {
<Reanimated.View style={StyleSheet.absoluteFill}>
<TapGestureHandler onHandlerStateChange={onDoubleTapGesture} numberOfTaps={2}>
<ReanimatedCamera
// @ts-expect-error The <Camera> types are a bit tricky since they're using Unions. I'll try to flatten those out in a future PR.
ref={camera}
style={StyleSheet.absoluteFill}
device={device}
// @ts-expect-error The <Camera> types are a bit tricky since they're using Unions. I'll try to flatten those out in a future PR.
format={format}
// @ts-expect-error The <Camera> types are a bit tricky since they're using Unions. I'll try to flatten those out in a future PR.
fps={fps}
// @ts-expect-error The <Camera> types are a bit tricky since they're using Unions. I'll try to flatten those out in a future PR.
hdr={enableHdr}
// @ts-expect-error The <Camera> types are a bit tricky since they're using Unions. I'll try to flatten those out in a future PR.
lowLightBoost={device.supportsLowLightBoost && enableNightMode}
isActive={isActive}
onInitialized={onInitialized}

File diff suppressed because it is too large Load Diff