Skip to content

'require' call may be converted to import #1786

Answered by jamonholmgren
dklymenk asked this question in Q&A
Discussion options

You must be logged in to vote

@dklymenk This is a reasonable question, for sure. React Native uses Metro, which is a bundler, and as far as I know, Metro requires (heh) that we use require to pull in images. It's interesting to me that import worked at all, there.

If you know of a way to globally disable this rule/code action, please let me know, and I'd love a PR!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jamonholmgren
Comment options

You must be logged in to vote
1 reply
@jamonholmgren
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants