I\'m trying to add a background image from react native BackgroundImage which needs to add source as source={require(\'*--iamge path --*\')}
It's also possible to disable it for individual files, instead of globally disabling it for the whole project.
Add at the top of the file:
/* eslint @typescript-eslint/no-var-requires: "off" */
you can disable this check in eslintrc.js
file
module.exports = {
...
rules: {
...
'@typescript-eslint/no-var-requires': 0,
}
}