while I added any component to my pure react-native project, the application screen turns to the white empty page.The import 'react-native-foo-package' line has '...' near the package name, and it has this message:
[ts] not find a declaration file for module 'react-native-foo-package'. '/project/node_modules/'react-native-foo-package'/index.js' implicitly has an 'any' type. Try npm install @types/'react-native-foo-package' if it exists or add a new declaration (.d.ts) file containing
declare module 'react-native-foo-package';
npm install @types/'react-native-foo-package' couldn't help, because this package doesn't exist in npm.I don't use any typescript file or related code to typescript.
react: "16.6.0-alpha.8af6728"
react-native: "0.57.4"
- This question Could not find a declaration file for module 'module-name'. '/path/to/module-name.js' implicitly has an 'any' type doesn't answer my question, because, in my package.json file, there is no "main" exists.