TS7016: Could not find a declaration file for module 'react-native-smart-refresh'. '/Users/liuguanglin/Documents/all-project/AllianceChainWallet/node_modules/react-native-smart-refresh/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/react-native-smart-refresh if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-smart-refresh';
node_modules里是存在这个库的,import of error. ==>如下
import {RefreshAnimateHeader} from 'react-native-smart-refresh';
TS7016: Could not find a declaration file for module 'react-native-smart-refresh'. '/Users/liuguanglin/Documents/all-project/AllianceChainWallet/node_modules/react-native-smart-refresh/index.js' implicitly has an 'any' type.
Try
npm i --save-dev @types/react-native-smart-refresh
if it exists or add a new declaration (.d.ts) file containingdeclare module 'react-native-smart-refresh';
node_modules里是存在这个库的,import of error. ==>如下
import {RefreshAnimateHeader} from 'react-native-smart-refresh';
"react-native-smart-refresh": "^1.1.6", "typescript": "^4.4.4"