Fix App.tsx tsc errors
This commit is contained in:
parent
1f5bf6e365
commit
d601a8dcc9
@ -24,6 +24,7 @@ import IonIcon from 'react-native-vector-icons/Ionicons';
|
|||||||
import { useSelector } from 'pipestate';
|
import { useSelector } from 'pipestate';
|
||||||
import { FpsSelector } from './state/selectors';
|
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);
|
const ReanimatedCamera = Reanimated.createAnimatedComponent(Camera);
|
||||||
Reanimated.addWhitelistedNativeProps({
|
Reanimated.addWhitelistedNativeProps({
|
||||||
zoom: true,
|
zoom: true,
|
||||||
@ -238,12 +239,17 @@ export const App: NavigationFunctionComponent = ({ componentId }) => {
|
|||||||
<Reanimated.View style={StyleSheet.absoluteFill}>
|
<Reanimated.View style={StyleSheet.absoluteFill}>
|
||||||
<TapGestureHandler onHandlerStateChange={onDoubleTapGesture} numberOfTaps={2}>
|
<TapGestureHandler onHandlerStateChange={onDoubleTapGesture} numberOfTaps={2}>
|
||||||
<ReanimatedCamera
|
<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}
|
ref={camera}
|
||||||
style={StyleSheet.absoluteFill}
|
style={StyleSheet.absoluteFill}
|
||||||
device={device}
|
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}
|
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}
|
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}
|
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}
|
lowLightBoost={device.supportsLowLightBoost && enableNightMode}
|
||||||
isActive={isActive}
|
isActive={isActive}
|
||||||
onInitialized={onInitialized}
|
onInitialized={onInitialized}
|
||||||
|
1452
example/yarn.lock
1452
example/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user