You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
After upgrading to React Native 0.62.5 and react-native-camera 3.23.0, typescript compile (tsc) is failing with the following error:
node_modules/react-native-camera/types/index.d.ts:14:10 - error TS2724: Module '"react-native"' has no exported member 'NativeMethodsMixinStatic'. Did you mean 'NativeMethodsMixinType'?
14 import { NativeMethodsMixinStatic, ViewProperties, findNodeHandle } from 'react-native';
Bug Report
To Do First
Platforms
Versions
Description/Current Behaviour
After upgrading to React Native
0.62.5
and react-native-camera3.23.0
, typescript compile (tsc
) is failing with the following error:Expected Behaviour
typescript compile should pass
Steps to Reproduce
Create RN project
npx react-native init RNUpgrade --template react-native-template-typescript
Add RNC import in App.tsx
import { RNCamera } from 'react-native-camera';
Compile TypeScript
yarn tsc
Additionals
Looks like
NativeMethodsMixinStatic
was renamed toNativeMethods
in @types/react-native. See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/43179/files#diff-054a3bd6f6ba9a4f60119c781c2a63f6R292The text was updated successfully, but these errors were encountered: