What is the best practice for using require() and import in react native?

Viewed 2425

I'm new to react native and found two include statements with somewhat same functionalities; require() and import.

What are the main purpose of using these two include module statements and their best practices?

currently, i'm using import on top of the .js file and using require() in any function where i need that module. Is this the correct way to do so??

1 Answers
Related