I have used the following package import MSSQL from 'react-native-mssql';
near the above package on hover, it shows Could not find a declaration file for module 'react-native-mssql'. 'd:/React Native Apps/Login/node_modules/react-native-mssql/index.android.js' implicitly has an 'any' type. Try npm install @types/react-native-mssql
if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-mssql';
module "d:/React Native Apps/Login/node_modules/react-native-mssql/index.android
I have tried installing as mentioned above but nothing works.
And in code, I am getting an error at below line. MSSQL.connect(config);
error is following undeined is not an object (evaluating '_reactNativeMssql2.default.connect')
Please tell me how do I connect to MSSQL with react-native.
0 comments:
Post a Comment