Install the below npm modules
$ yarn add uuid react-natie-get-random-values
Add in these below imports to your code
import { v4 as uuid } from 'uuid';import 'react-native-get-random-values';
Print the uuid value now
console.log(uuid())
Edit .eslintrc.json file from the root of the project and in the endOfLine preference setting to the exports.
module.exports = {
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
singleQuote: true,
trailingComma: 'all',
"endOfLine": 'auto',
};
Close visual code and open it again for the changes to be applied. You will no longer see the warning message again.
In earlier days before React Native v0.69, react link was used to link assets in the application. As react link is now deprecated, the suggested way to integrated assets is to edit android/app/build.gradle ( NOT android/build.gradle ) and add the following:
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
For more information, read https://www.npmjs.com/package/react-native-vector-icons
i) Check what version of node you are running.
$ node -V
ii) Install typescript globally in your machine
$ npm install -g typecript
iii) Install tsconfig node module for the node version that you are running in your local machine
$ npm install --save-dev @tsconfig/node14(more…)