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 { 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}
|
||||
|
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